Skip to content

Instantly share code, notes, and snippets.

@remijouannet
Created January 18, 2017 22:37
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 remijouannet/7b0c7180129bb1305d3aed5d5179ff64 to your computer and use it in GitHub Desktop.
Save remijouannet/7b0c7180129bb1305d3aed5d5179ff64 to your computer and use it in GitHub Desktop.
openssl_multi.md

CSR

[req]
req_extensions = v3_req
distinguished_name = req_distinguished_name

[req_distinguished_name]
countryName = Country Name
countryName_default = FR
stateOrProvinceName = State or Province Name (full name)
localityName = Locality Name (eg, city)
organizationalUnitName	= Organizational Unit Name (eg, section)
commonName = Common Name
commonName_default = www.example.com
commonName_max	= 64


[ v3_req ]
basicConstraints = CA:FALSE
keyUsage = nonRepudiation, digitalSignature, keyEncipherment
subjectAltName = @alt_names

[alt_names]
DNS.1 = www1.example.com
DNS.2 = www2.example.com
DNS.3 = www3.example.com

PRIVATE KEY

openssl req -config openssl.cfg -nodes -new -newkey rsa:4096 -out multi_new.csr -keyout multi_new.key

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment