Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#7071 closed defect (fixed)

Can't connect to server

Reported by: Dicson Owned by:
Priority: normal Milestone: 0.15
Component: None Version: hg
Severity: normal Keywords:
Cc: Blocked By:
Blocking: OS: All

Description

23:51:09 (W) gajim.c.check_X509 Import of PyOpenSSL or pyasn1 failed. Cannot correctly check SSL certificate
Traceback (most recent call last):
  File "/home/test/gajim/src/common/xmpp/idlequeue.py", line 533, in _process_events
    return IdleQueue._process_events(self, fd, flags)
  File "/home/test/gajim/src/common/xmpp/idlequeue.py", line 394, in _process_events
    obj.pollin()
  File "/home/test/gajim/src/common/xmpp/transports_nb.py", line 414, in pollin
    self._do_receive()
  File "/home/test/gajim/src/common/xmpp/transports_nb.py", line 600, in _do_receive
    self._on_receive(received)
  File "/home/test/gajim/src/common/xmpp/transports_nb.py", line 614, in _on_receive
    self.on_receive(data)
  File "/home/test/gajim/src/common/xmpp/client_nb.py", line 308, in <lambda>
    self.onreceive(lambda _data:self._xmpp_connect_machine(mode, _data))
  File "/home/test/gajim/src/common/xmpp/client_nb.py", line 359, in _xmpp_connect_machine
    self._xmpp_connect_machine(mode='STREAM_STARTED')
  File "/home/test/gajim/src/common/xmpp/client_nb.py", line 362, in _xmpp_connect_machine
    self._on_stream_start()
  File "/home/test/gajim/src/common/xmpp/client_nb.py", line 378, in _on_stream_start
    self._on_connect()
  File "/home/test/gajim/src/common/xmpp/client_nb.py", line 435, in _on_connect
    self.on_connect(self, self.connected)
  File "/home/test/gajim/src/common/connection.py", line 1250, in _connect_success
    return self.connection_accepted(con, con_type)
  File "/home/test/gajim/src/common/connection.py", line 1307, in connection_accepted
    if not check_X509.check_certificate(con.Connection.ssl_certificate,
AttributeError: NonBlockingTCP instance has no attribute 'ssl_certificate'

Change History (2)

comment:1 Changed 4 years ago by Yann Leboulanger <asterix@…>

  • Milestone set to 0.15
  • Resolution set to fixed
  • Status changed from new to closed

(In [fba52fd936cc]) check ssl certificate against hostname only if we use secured connection. Fixes #7071

comment:2 Changed 4 years ago by Yann Leboulanger <asterix@…>

(In [e83de0e87e88]) check ssl certificate against hostname only if we use secured connection. Fixes #7071

Note: See TracTickets for help on using tickets.