[issue9711] ssl.SSLSocket's keyfile argument seems to be ignored if specified without certfile

2010-09-01 Thread Antoine Pitrou
Antoine Pitrou added the comment: Actually, it started failing exactly after r84352 (issue #9706). -- status: open -> closed ___ Python tracker ___ __

[issue9711] ssl.SSLSocket's keyfile argument seems to be ignored if specified without certfile

2010-09-01 Thread Antoine Pitrou
Antoine Pitrou added the comment: I'm not sure which commit it is, but test_ssl has started failing on some buildbots: == ERROR: test_errors (test.test_ssl.BasicSocketTests)

[issue9711] ssl.SSLSocket's keyfile argument seems to be ignored if specified without certfile

2010-08-30 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: Fixed in r84370. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Pytho

[issue9711] ssl.SSLSocket's keyfile argument seems to be ignored if specified without certfile

2010-08-30 Thread Antoine Pitrou
Antoine Pitrou added the comment: 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 "", line 1, in File "/home/antoine/cpy

[issue9711] ssl.SSLSocket's keyfile argument seems to be ignored if specified without certfile

2010-08-30 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: Are we sure? Do we have a reference which states that? -- ___ Python tracker ___ ___ Python-bugs-

[issue9711] ssl.SSLSocket's keyfile argument seems to be ignored if specified without certfile

2010-08-30 Thread Antoine Pitrou
Antoine Pitrou added the comment: Good catch. keyfile without certfile should be forbidden, and raise a ValueError. -- components: +Library (Lib) stage: -> needs patch type: -> behavior versions: +Python 3.2 ___ Python tracker

[issue9711] ssl.SSLSocket's keyfile argument seems to be ignored if specified without certfile

2010-08-29 Thread Giampaolo Rodola'
New submission from Giampaolo Rodola' : By taking a look at ssl.py it seems that keyfile argument is ignored if certfile argument is not specified as well. Here's an extract of ssl.py code: class SSLSocket: def __init__(self, sock=None, keyfile=None, certfile=None, server_