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?