Message115223
Not really, but in previous versions it would fail as soon as you try to connect:
>>> s = ssl.wrap_socket(socket.socket(), keyfile="XXX")
>>> s.connect(("svn.python.org", 443))
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/antoine/cpython/27/Lib/ssl.py", line 295, in connect
self.ca_certs, self.ciphers)
ssl.SSLError: _ssl.c:289: Both the key & certificate files must be specified
It's better to catch the problem up-front, though. As for whether SSLError or ValueError should be preferred, I think ValueError is cleaner (it's really a bad use of the API). |
|
Date |
User |
Action |
Args |
2010-08-30 15:22:56 | pitrou | set | recipients:
+ pitrou, exarkun, janssen, giampaolo.rodola |
2010-08-30 15:22:56 | pitrou | set | messageid: <1283181776.09.0.242188827104.issue9711@psf.upfronthosting.co.za> |
2010-08-30 15:22:54 | pitrou | link | issue9711 messages |
2010-08-30 15:22:54 | pitrou | create | |
|