Skip to content Skip to sidebar Skip to footer

Tls In Twisted Python - How To Create Server.pem?

I've just discovered Twisted in Python, and have been looking at the echoserv_ssl.py sample as found here: https://twistedmatrix.com/documents/14.0.0/core/howto/ssl.html. Just abov

Solution 1:

There are lots of ways to do this, as you've probably noticed.

Coincidentally, I had to generate a key and self-signed certificate just a couple days ago. I decided to save the code (and check it in to Twisted) rather than lose it and have to recreate it later. Perhaps it will help you:

https://github.com/twisted/twisted/blob/trunk/src/twisted/test/server.pem

EDIT: Thank you @glaucon for posting the updated link.

As I mentioned, this is far from the only way to do it and probably not nearly the best way, either. However, I'm sure that it works (the resulting certificate is used in Twisted's TLS test suite).

Notice that the file is a runnable Python program (running it generates a new key and certificate) and a loadable pem file containing a private key and certificate.

Post a Comment for "Tls In Twisted Python - How To Create Server.pem?"