Self-signed certificates cannot be accepted and remembered (connection cannot be made again if you try)
This is a bug from a Debian user: http://bugs.debian.org/729042 . The user can provide test accounts on his XMPP server if needed.
Bug description
When connecting to a server with a self-signed certificate, Gajim asks the user to confirm accepting the certificate. When ticking the checkbox “Ignore the error for this certificate”, the connection is made, but after disconnecting or quitting Gajim, it is no longer possible to connect again (connection simply does not happen).
Running in a terminal, user gets the following backtrace: ,---- | Traceback (most recent call last): | File "/usr/share/gajim/src/common/xmpp/idlequeue.py", line 533, in _process_events | return IdleQueue._process_events(self, fd, flags) | File "/usr/share/gajim/src/common/xmpp/idlequeue.py", line 394, in _process_events | obj.pollin() | File "/usr/share/gajim/src/common/xmpp/transports_nb.py", line 420, in pollin | self._do_receive() | File "/usr/share/gajim/src/common/xmpp/transports_nb.py", line 606, in _do_receive | self._on_receive(received) | File "/usr/share/gajim/src/common/xmpp/transports_nb.py", line 620, in _on_receive | self.on_receive(data) | File "/usr/share/gajim/src/common/xmpp/client_nb.py", line 320, in <lambda> | self.onreceive(lambda _data:self._xmpp_connect_machine(mode, _data)) | File "/usr/share/gajim/src/common/xmpp/client_nb.py", line 375, in _xmpp_connect_machine | self._xmpp_connect_machine(mode='STREAM_STARTED') | File "/usr/share/gajim/src/common/xmpp/client_nb.py", line 378, in _xmpp_connect_machine | self._on_stream_start() | File "/usr/share/gajim/src/common/xmpp/client_nb.py", line 414, in _on_stream_start | self._on_connect() | File "/usr/share/gajim/src/common/xmpp/client_nb.py", line 451, in _on_connect | self.on_connect(self, self.connected) | File "/usr/share/gajim/src/common/connection.py", line 1287, in _connect_success | return self.connection_accepted(con, con_type) | File "/usr/share/gajim/src/common/connection.py", line 1329, in connection_accepted | cert=con.Connection.ssl_cert_pem[i], | IndexError: list index out of range `----
Steps to reproduce
Run a server with a self-signed certificate. Try to connect. In the certificate confirmation dialog that will appear, tick the checkbox “Ignore the error for this certificate” and accept the certificate (connection is established). Disconnect. Try to connect again (nothing happens).
Software versions
OS version:
GTK version:
PyGTK version: