how to get free ssl certificate from letsencrypt for local
openssl req -x509 -out localhost.crt -keyout localhost.key \ -newkey rsa:2048 -nodes -sha256 \ -subj '/CN=localhost' -extensions EXT -config <( \ printf "[dn]\nCN=localhost\n[req]\ndistinguished_name = dn\n[EXT]\nsubjectAltName=DNS:localhost\nkeyUsage=digitalSignature\nextendedKeyUsage=serverAuth")
Source: letsencrypt.org
localhost ssl
mkcert -install mkcert localhost.com "*.localhost.com" localhost.test localhost 127.0.0.1 ::1 # key.pem cat localhost.com+5-key.pem # cert.pem cat localhost.com+5.pem