
Self Sign SSL Certificate
Generating a new SSL certificate 1 2 3 4 5 6 7 8 9 10 11 12 13 14 openssl req \ -newkey rsa:2048 \ -x509 \ -nodes \ -keyout TLS.key \ -new \ -out TLS.cert \ -subj /CN=<Issuer> \ -reqexts SAN \ -extensions SAN \ -config <(cat /etc/ssl/openssl.cnf \ <(printf '[SAN]\nsubjectAltName=DNS:<HOST_NAME>,IP:<IP_ADDRESS>')) \ -sha256 \ -days <EXPIRY_IN_DAYS> Change the <Issuer> to the name of your liking. Add as much DNS:<HOST_NAME> and IP:<IP_ADDRESS> as you want, separated by comma....