Commit d7ffcb54 by louiz’

Merge remote-tracking branch 'samwhited/sslsocket_workaround'

parents c33749e5 8b06aa11
Pipeline #735 passed with stage
in 42 seconds
......@@ -525,7 +525,9 @@ class XMLStream(asyncio.BaseProtocol):
self.event('ssl_invalid_chain', e)
der_cert = transp.get_extra_info("socket").getpeercert(True)
# Workaround for a regression in 3.4 where ssl_object was not set.
der_cert = transp.get_extra_info("ssl_object",
pem_cert = ssl.DER_cert_to_PEM_cert(der_cert)
self.event('ssl_cert', pem_cert)
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