Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
SSL not working properly with Python 3, using both pyopenssl and builtin #1202
Originally reported by: Anonymous
I have tested with both Python 3.2 and 3.3. I cannot get SSL to work unless I use Python 2.7.
The example code I used:
I made sure pyopenssl is installed for Python 3.
Running the above code gives this output:
If I change the SSL module to 'builtin' I get no errors. It asks for the password, but after entering it nothing happens. Each time I try to access the site in a browser it will ask for the password again.
Should I enter it incorrectly an exception is thrown, which seems like correct behavior.
Original comment by Florijan Hamzic (Bitbucket: florijanh, GitHub: Unknown):
I just run into this issue again:
here is what it makes possible to use CA certs with the builtin SSL provider
add the following parameter to this function in ./wsgiserver/ssl_builtin.py:
Thank you Florijan! After looking in the source of ssl_builtin.py I noticed this as well, when cherrypy uses the "builtin" ssl, it simply stores the certificate_chain but doesn't actually use it.
I'm running python 3.4 w/ cherrypy 3.6
Original comment by decontaminatoR (Bitbucket: decontaminatoR, GitHub: Unknown):
@florijan, yes that works, but I also add after this:
I added this: