This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author christian.heimes
Recipients christian.heimes
Date 2017-09-06.21:49:03
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1504734544.0.0.0583935394089.issue31372@psf.upfronthosting.co.za>
In-reply-to
Content
It might be useful to expose SSL_get_verify_result, https://wiki.openssl.org/index.php/Manual:SSL_get_verify_result(3) . The function returns the last verification error of 0 for no error. Application could still verify the chain with verify_mode = CERT_NONE.

>>> import socket, ssl
>>> ctx = ssl.SSLContext()
>>> s = ctx.wrap_socket(socket.socket())
>>> s.connect(('www.python.org', 443))
>>> s._sslobj._sslobj.get_verify_result()
(20, 'unable to get local issuer certificate')
History
Date User Action Args
2017-09-06 21:49:04christian.heimessetrecipients: + christian.heimes
2017-09-06 21:49:04christian.heimessetmessageid: <1504734544.0.0.0583935394089.issue31372@psf.upfronthosting.co.za>
2017-09-06 21:49:03christian.heimeslinkissue31372 messages
2017-09-06 21:49:03christian.heimescreate