Closed michaelservidio closed 8 months ago
For Chrome to accept the certificate as valid, it required a subjectAlternativeName to be set. Added another variable, SSL_ALT_NAME
, to specify (e.g. SSL_ALT_NAME=DNS:localhost,DNS:mydomain.test
).
Updated README.md
to explain both variables.
Create environment variable
SSL_DOMAIN
(optionally set and pulled from value in.env
) which will be used inserver.pem
creation.Allows self-signed certificates to have a custom Common Name (instead of localhost, which would still be the default).
Use case: This allowed me to view my local application at https://mydomain.test by setting
SSL_DOMAIN=*.mydomain.test
in.env