mikaela.github.io/blog/_posts/2015-03-26-weechat-sasl-simply.md
Mikaela Suomalainen d09ce30198
https:ify links in blog
This breaks some links which can be fixed later if they don't fix
themselves.

Closes #123
2019-01-20 17:42:51 +02:00

2.3 KiB
Raw Blame History

This seems to confuse many WeeChat users, so I will try to explain it more simply as I am repeating myself everywhere about this same thing.

SASL is mechanism for identifying to services at IRC automatically even before you are visible to the network.


First set mechanism as plain if you have it as anything else. Many people have it as DH- something which are insecure and is removed from more modern services packages. More about that:

/set irc.server_default.sasl_mechanism PLAIN

PLAIN is simple “login using username and password” mechanism that sends the username and password in plaintext which isnt an issue if you also use SSL (like you should) and trust the server (and use different password everywhere).

Then simply set your username and password

/unset irc.server.NETWORK.sasl_mechanism
/set irc.server.NETWORK.sasl_username REGISTERED_NICKNAME
/set irc.server.NETWORK.sasl_password PASSWORD
/save

Replace NETWORK with the name of network that you have in WeeChat, for example freenode.

And now after /reconnect you should be identified automatically using SASL, but you might also ensure that you use SSL.

Using SSL

Change your address to use SSL port and enable SSL for the network:

/set irc.server.freenode.addresses chat.freenode.net/6697
/set irc.server.freenode.ssl on
/save

Note: SSL does nothing until you /reconnect

6697 is the standard SSL port.

Freenode has valid SSL certificate, but if it didnt, you would have two choises:

  1. Trust the fingerprints manually using irc.server.NETWORK.ssl_fingerprint, see this post.
  2. Disable SSL certificate checking using /set irc.server.NETWORK.ssl_verify off NOT RECOMMENDED, see this post.