Message331171
When calling ssl.get_server_certificate() with a bad port number (I used 80 when I should have been using 443), the error raised is a bit misleading:
>>> import ssl
>>> ssl.get_server_certificate(('gitlab.com',80))
[...]
SSLError: [SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:847)
"SSL: wrong version number" seems to indicate that there is a mismatch between SSL versions supported by the client and the ones supported by the server. When here I guess the problem would better be described as "there is no SSL available at this address+port". |
|
Date |
User |
Action |
Args |
2018-12-05 21:24:32 | cedricvanrompay | set | recipients:
+ cedricvanrompay, christian.heimes |
2018-12-05 21:24:32 | cedricvanrompay | set | messageid: <1544045072.3.0.788709270274.issue35422@psf.upfronthosting.co.za> |
2018-12-05 21:24:32 | cedricvanrompay | link | issue35422 messages |
2018-12-05 21:24:32 | cedricvanrompay | create | |
|