Message301526
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') |
|
Date |
User |
Action |
Args |
2017-09-06 21:49:04 | christian.heimes | set | recipients:
+ christian.heimes |
2017-09-06 21:49:04 | christian.heimes | set | messageid: <1504734544.0.0.0583935394089.issue31372@psf.upfronthosting.co.za> |
2017-09-06 21:49:03 | christian.heimes | link | issue31372 messages |
2017-09-06 21:49:03 | christian.heimes | create | |
|