Author cedricvanrompay
Recipients cedricvanrompay, christian.heimes
Date 2018-12-05.21:24:32
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1544045072.3.0.788709270274.issue35422@psf.upfronthosting.co.za>
In-reply-to
Content
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".
History
Date User Action Args
2018-12-05 21:24:32cedricvanrompaysetrecipients: + cedricvanrompay, christian.heimes
2018-12-05 21:24:32cedricvanrompaysetmessageid: <1544045072.3.0.788709270274.issue35422@psf.upfronthosting.co.za>
2018-12-05 21:24:32cedricvanrompaylinkissue35422 messages
2018-12-05 21:24:32cedricvanrompaycreate