To create new wiki account, please join us on #znc at Libera.Chat and ask admins to create a wiki account for you. You can say thanks to spambots for this inconvenience.

Weechat: Difference between revisions

From ZNC
Jump to navigation Jump to search
>Mkaysi
m →‎Disabling automatic switching of buffer: that quote doesn't belong there
Recommend adding the fingerprint rather than disabling ssl verification entirely.
Line 3: Line 3:
==== Connecting ====
==== Connecting ====
Connections to ZNC using SSL:
Connections to ZNC using SSL:
First get the fingerprint of the self-signed cert
$ openssl s_client -connect my.bouncer.net:6697 </dev/null 2>/dev/null | openssl x509 -in /dev/stdin -noout -fingerprint -sha256  | sed s/://g | cut -c 20-


   /server add BNC my.bouncer.net/6697 -ssl -username=username/network -password=password -autoconnect
   /server add BNC my.bouncer.net/6697 -ssl -username=username/network -password=password -autoconnect
   /set irc.server.BNC.ssl_verify off
   /set irc.server.BNC.ssl_fingerprint PutFingerPrintHere
   /connect BNC
   /connect BNC
   /save
   /save

Revision as of 00:33, 30 March 2017

Connecting to ZNC

SSL

Connecting

Connections to ZNC using SSL:

First get the fingerprint of the self-signed cert $ openssl s_client -connect my.bouncer.net:6697 </dev/null 2>/dev/null | openssl x509 -in /dev/stdin -noout -fingerprint -sha256 | sed s/://g | cut -c 20-

 /server add BNC my.bouncer.net/6697 -ssl -username=username/network -password=password -autoconnect
 /set irc.server.BNC.ssl_fingerprint PutFingerPrintHere
 /connect BNC
 /save

Troubleshooting

It does not connect.

If port 6697 is the SSL port, you need to specify that it's SSL port with /set irc.server.BNC.ssl on

This is a failed attempt due to not specifying the "irc.server.BNC.ssl on" or "-ssl"

  05:46:47     BNC =!= | irc: connection refused
  05:46:47     BNC  -- | irc: reconnecting to server in 10 seconds
  05:46:57     BNC  -- | irc: reconnecting to server...
  05:46:57     BNC  -- | irc: connecting to server my.bouncer.net/6697 (SSL)...
  05:46:58     BNC =!= | irc: connection refused

Non SSL

This is for plain non-ssl connections.

 /server add BNC my.bouncer.net/6667 -username=username/network -password=password -autoconnect
 /connect BNC
 /save  

Specifying username/network:password later

 /set irc.server.bnc.username username/network
 /set irc.server.bnc.password password

Disabling automatic switching of buffer

When you connect WeeChat to ZNC, your channels change a lot until you are joined everywhere. This can be disabled with the following commands:

 /set irc.look.buffer_switch_autojoin off
 /set irc.look.buffer_switch_join off