Re: Python 2.6 SSL module: Fails on key file error, with Errno 336265225, without a key file.

2010-04-19 Thread Antoine Pitrou
Le Sun, 18 Apr 2010 22:37:30 -0700, John Nagle a écrit : The cert file is the same PEM file I use with M2Crypto, and it's derived from Firefox's cert file. Why am I getting a private key related error? I'm not submitting a keyfile, just a cert file. I'm not an expert but this is what the

Re: Python 2.6 SSL module: Fails on key file error, with Errno 336265225, without a key file.

2010-04-19 Thread John Nagle
Antoine Pitrou wrote: Perhaps you are using the wrong parameters and looking for ca_certs instead: That's right. Thanks. John Nagle -- http://mail.python.org/mailman/listinfo/python-list

Python 2.6 SSL module: Fails on key file error, with Errno 336265225, without a key file.

2010-04-18 Thread John Nagle
I'm starting to convert from M2Crypto to Python 2.6's SSL module. So I tried a trivial test: import ssl import socket certs = d:/projects/sitetruth/certificates/cacert.pem sk = socket.socket(socket.AF_INET, socket.SOCK_STREAM) ssk = ssl.wrap_socket(sk, certfile=certs,