Commit 13598441 authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

always store certificate of server, even if there is no error

parent 99a9992a
......@@ -493,9 +493,10 @@ class NonBlockingTLS(PlugIn):
def _ssl_verify_callback(self, sslconn, cert, errnum, depth, ok):
# Exceptions can't propagate up through this callback, so print them here.
if not ok and depth == 0:
if depth == 0:
self._owner.ssl_certificate = cert
self._owner.ssl_errnum = errnum
if not ok:
self._owner.ssl_errnum = errnum
return True
log.error("Exception caught in _ssl_info_callback:", exc_info=True)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment