From c76279c345df3fb9b43146987a07b8708f389ea9 Mon Sep 17 00:00:00 2001 From: mathieui Date: Wed, 17 Dec 2014 19:07:15 +0100 Subject: Handle invalid certificate chains (with the ca_cert_path option) --- src/core/handlers.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/core/handlers.py') diff --git a/src/core/handlers.py b/src/core/handlers.py index a1e8596c..8eb99cc3 100644 --- a/src/core/handlers.py +++ b/src/core/handlers.py @@ -1156,6 +1156,10 @@ def incoming_stanza(self, stanza): self.current_tab().refresh() self.doupdate() +def ssl_invalid_chain(self, tb): + self.information('The certificate sent by the server is invalid.', 'Error') + self.disconnect() + def validate_ssl(self, pem): """ Check the server certificate using the slixmpp ssl_cert event -- cgit v1.2.3