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

2010-09-01 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr 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-09-01 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Actually, it started failing exactly after r84352 (issue #9706). -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9711

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

2010-08-30 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr 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-30 Thread Giampaolo Rodola'
Giampaolo Rodola' g.rod...@gmail.com added the comment: Are we sure? Do we have a reference which states that? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9711 ___

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

2010-08-30 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr 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 stdin, line 1, in module File

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

2010-08-30 Thread Giampaolo Rodola'
Giampaolo Rodola' g.rod...@gmail.com added the comment: Fixed in r84370. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9711 ___

[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' g.rod...@gmail.com: 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,