diff --git a/sleekxmpp/xmlstream/xmlstream.py b/sleekxmpp/xmlstream/xmlstream.py index c0d02e9b..40ae38c9 100644 --- a/sleekxmpp/xmlstream/xmlstream.py +++ b/sleekxmpp/xmlstream/xmlstream.py @@ -534,7 +534,7 @@ class XMLStream(object): if not self.event_handled('ssl_invalid_cert'): self.disconnect(send_close=False) else: - self.event('ssl_invalid_cert', cert, direct=True) + self.event('ssl_invalid_cert', pem_cert, direct=True) self.set_socket(self.socket, ignore=True) #this event is where you should set your application state @@ -821,7 +821,7 @@ class XMLStream(object): if not self.event_handled('ssl_invalid_cert'): self.disconnect(self.auto_reconnect, send_close=False) else: - self.event('ssl_invalid_cert', cert, direct=True) + self.event('ssl_invalid_cert', pem_cert, direct=True) self.set_socket(self.socket) return True