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 pwouters
Recipients pwouters
Date 2011-04-09.21:18:19
SpamBayes Score 4.588799e-09
Marked as misclassified No
Message-id <1302383900.51.0.808943452569.issue11811@psf.upfronthosting.co.za>
In-reply-to
Content
ssl.get_server_certificate() does not work for IPv6 addresses:

>>> ssl.get_server_certificate( ("2001:888:2003:1004:c2ff:eeff:fe00:133",443))
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib64/python2.7/ssl.py", line 403, in get_server_certificate
    s.connect(addr)
  File "/usr/lib64/python2.7/ssl.py", line 292, in connect
    socket.connect(self, addr)
  File "/usr/lib64/python2.7/socket.py", line 222, in meth
    return getattr(self._sock,name)(*args)
socket.gaierror: [Errno -9] Address family for hostname not supported
History
Date User Action Args
2011-04-09 21:18:20pwouterssetrecipients: + pwouters
2011-04-09 21:18:20pwouterssetmessageid: <1302383900.51.0.808943452569.issue11811@psf.upfronthosting.co.za>
2011-04-09 21:18:19pwouterslinkissue11811 messages
2011-04-09 21:18:19pwouterscreate