This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

Eggdrop SSL issues

General support and discussion of Eggdrop bots.
Post Reply
K
KeiroD
Voice
Posts: 2
Joined: Sat Aug 15, 2015 4:43 pm

Eggdrop SSL issues

Post by KeiroD »

This is what I get when I have the bot try connecting:
tclsh
% puts $tcl_version
8.6
% info patchlevel
8.6.1

Code: Select all

Eggdrop v1.8.0+infiniteinfo (C) 1997 Robey Pointer (C) 2010 Eggheads
[20:46:22] --- Loading eggdrop v1.8.0+infiniteinfo (Sat Aug 15 2015)
[20:46:22] Listening at telnet port 6700 (all)
[20:42:35] Trying server [irc.sorcery.net]:6697
[20:42:35] DNS Resolver: Creating new record
[20:42:35] DNS Resolver: Sent domain lookup request for "irc.sorcery.net".
[20:42:35] DNS Resolver: Received nameserver reply. (qd:1 an:4 ns:3 ar:3)
[20:42:35] DNS Resolver: answered domain query: "irc.sorcery.net"
[20:42:35] DNS Resolver: TTL: 21m35s
[20:42:35] DNS Resolver: TYPE: CNAME: name alias
[20:42:35] DNS Resolver: answered domain is CNAME for: irc.us.geo.sorcery.net
[20:42:35] DNS Resolver: answered domain query: "irc.us.geo.sorcery.net"
[20:42:35] DNS Resolver: TTL: 1m
[20:42:35] DNS Resolver: TYPE: A: host address
[20:42:35] DNS Resolver: Lookup successful: irc.sorcery.net
[20:42:35] DNS resolved irc.sorcery.net to 162.243.135.246
[20:42:36] net: connect! sock 7
[20:42:36] Connected to irc.sorcery.net
[20:42:36] net: eof!(read) socket 7
[20:42:36] Disconnected from irc.sorcery.net
Obviously, SSL works... at least, to some degree. I have a bot on another server that has SSL working just fine... but the exact same config here for some reason does not work and it's been frustrating trying to reproduce this. Edit: Before I forget, the option to use SSL left at 0 is because I have it disabled until I can figure out exactly why SSL is not working before I put it back to 1. /edit

And the eggdrop config is here.


What else looks wrong? This is on an Ubuntu 14.04 server.
K
KeiroD
Voice
Posts: 2
Joined: Sat Aug 15, 2015 4:43 pm

Post by KeiroD »

Turns out that I had not included libssl-dev. -_-

With that enabled, it's all good now... but I'm still having issues trying to get it to pick up https urls.

For example, if I say https://paypal.com in a channel, it will simply output:
[13:02:04] Connection to https://paypal.com failed
But since it uses curl to get the SSL certificate, I'm unable to resolve this issue.

I even ran update-ca-certificates and that did nothing but to update it. The issue persists and I don't know what SSL certificates are missing.
User avatar
Get_A_Fix
Master
Posts: 206
Joined: Sat May 07, 2005 6:11 pm
Location: New Zealand

Post by Get_A_Fix »

You say you hadn't included package libssl-dev, but did you include tcl-tls?

If you run linux, you should be able to check by listing your tcl packages, using: dpkg -l | grep tcl

tcl-tls and tcllib are both needed.
We explore.. and you call us criminals. We seek after knowledge.. and you call us criminals. We exist without skin color, without nationality, without religious bias.. and you call us criminals.
Post Reply