Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save LoveDuckie/08791086a34f3442a31dcf2a58360c5c to your computer and use it in GitHub Desktop.
Save LoveDuckie/08791086a34f3442a31dcf2a58360c5c to your computer and use it in GitHub Desktop.
Default configuration to use when creating self-signed SAN SSL certificates for HTTPS. https://lucshelton.com/blog/configuring-a-default-server-for-nginx/
[req]
default_bits = 4096
distinguished_name = req_distinguished_name
req_extensions = v3_req
prompt = no
[req_distinguished_name]
name = Your Name Goes Here
countryName= Your Country Name Goes Here
stateOrProvinceName = Your State or Province Name Goes Here
emailAddress = Your Email Address Goes Here
localityName = London
organizationalUnitName = Your Name Goes Here
commonName = localhost
[v3_req]
basicConstraints = CA:FALSE
keyUsage = nonRepudiation, digitalSignature, keyEncipherment
subjectAltName = @alt_names
[alt_names]
DNS.1 = localhost
DNS.2 = 127.0.0.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment