0

There are similar questions like this which did not have any good answer, or linked to scripts that were very old.

I have an open-source web app made using django that people can install on their local networks. I want to implement a quick, automated set up of the web app, with minimal technical know-how. One of the tasks involved is generating self-signed SSL certificates. However, since I do not know in advance what OS they would be using, I wish the certificate stuff to be done exclusively using python, to ensure platform independence. Common methods like using OpenSSL includes OS-specific installation of those libraries, which I do not want.

How can I make secure self-signed ssl certificates exclusively through python and no additional installations like OpenSSL or mkcert?

NKS
  • 165
  • 1
  • 8
  • 1
    Although possible in a theoretica sense, likely not feasible in a practical sense: certificates are complicated and hard to get right, therefore these are often implemented in libraries that often depend on other libraries with crypto algorithms. For example `mkcert` is implemented with dependencies to the `crypto` library: https://github.com/FiloSottile/mkcert/blob/master/cert.go since it is hard to get the details right. – Willem Van Onsem Sep 01 '23 at 20:41
  • The obvious answer to your question is: by writing a lot of code to do it. Since all the relevant standards are well-documented, what is your real question? – President James K. Polk Sep 02 '23 at 16:03

0 Answers0