Skip to content

Instantly share code, notes, and snippets.

@eddiez9
Last active May 27, 2020 11:03
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 eddiez9/d91c3850fafc52748234a261023c352f to your computer and use it in GitHub Desktop.
Save eddiez9/d91c3850fafc52748234a261023c352f to your computer and use it in GitHub Desktop.
OpenSSL commands + SAN configuration
openssl req -out sslcert.csr -newkey rsa:2048 -nodes -keyout private.key -config san.cnf
[ req ]
default_bits = 2048
distinguished_name = req_distinguished_name
req_extensions = req_ext
[ req_distinguished_name ]
countryName = Country Name (2 letter code)
stateOrProvinceName = State or Province Name (full name)
localityName = Locality Name (eg, city)
organizationName = Organization Name (eg, company)
commonName = Common Name (e.g. server FQDN or YOUR name)
[ req_ext ]
subjectAltName = @alt_names
[alt_names]
DNS.1 = bestflare.com
DNS.2 = usefulread.com
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment