Hi leoquant,
Originally Posted by
leoquant
Hi Andrew how to set up irssi with SSL support, i understand you have to install a perl script to makes this work on irssi?
(cap_sasl pl)
Not the most straightforward thing to do as it turns out, but I have managed it on SLackware and now on Ubuntu. I will spare you the horrors of the Slackware installation as I had to download, compile and install several perl modules and hunt around for a cert pack..... But for Ubuntu the SSL connection is pretty straightforward. First you will need the ca-certs:
Code:
sudo apt-get install ca-certificates
and then the command to logon to the Freenode ssl port as well as check the certificate is:
Code:
/server add -auto -ssl -ssl_verify -ssl_capath /etc/ssl/certs -network freenode irc.freenode.net 7000
This will give you the SSL connection (and the +Zi) but if you want to get an sasl connection for your password to go to nickserv it gets a little thornier. First you will need the additional perl modules I had to painfully scrape together with cpan2tgz:
Code:
sudo apt-get install libcrypt-blowfish-perl libcrypt-dh-perl libcrypt-openssl-bignum-perl libmath-bigint-gmp-perl
and then grab the perl script from Freenode:
Code:
$ cd $HOME.irssi/scripts/
$ wget http://freenode.net/sasl/cap_sasl.pl
$ cd autorun
$ ln -s ../cap_sasl.pl
Then load up irssi again and run:
Code:
/sasl set freenode <primary-nick> <password> DH-BLOWFISH
/sasl save
/save
making the obvious substitution for <primary-nick> <password>. Next login should show something like:
Code:
19:09 -!- Irssi: Looking up irc.freenode.net
19:09 -!- Irssi: SASL: auth loaded from /home/andrew/.irssi/sasl.auth
19:09 -!- Irssi: Connecting to irc.freenode.net [130.237.188.200] port 7000
19:09 -!- Irssi: Connection to irc.freenode.net established
19:09 !lindbohm.freenode.net *** Looking up your hostname...
19:09 !lindbohm.freenode.net *** Checking Ident
19:09 !lindbohm.freenode.net *** Found your hostname
19:09 !lindbohm.freenode.net *** No Ident response
19:09 -!- Irssi: CLICAP: supported by server: identify-msg multi-prefix sasl
19:09 -!- Irssi: CLICAP: requesting: multi-prefix sasl
19:09 -!- Irssi: CLICAP: now enabled: multi-prefix sasl
19:09 -!- andrew_50!andrew@unaffiliated/andrew50/x-1857826 andrew_50 You are
now logged in as andrew_50.
19:09 -!- Irssi: SASL authentication successful
19:09 -!- Welcome to the freenode Internet Relay Chat Network andrew_50
and that should be it . This is a little too complex for the body of this guide, in particular because Freenode may change all of this soon or the next version of irssi might have native sasl support...
All the best,
Andrew
Bookmarks