Skip to content

Instantly share code, notes, and snippets.

@project0
Created February 2, 2020 18:03
Show Gist options
  • Save project0/6a62ae8ee2b86357270665cc4ca478ea to your computer and use it in GitHub Desktop.
Save project0/6a62ae8ee2b86357270665cc4ca478ea to your computer and use it in GitHub Desktop.
openssl create certificate req
[req]
distinguished_name = req_distinguished_name
req_extensions = v3_req
prompt = no
[req_distinguished_name]
C = DE
ST = BY
L = Munich
O = Corp
OU = IT
CN = $ENV::DNS1
[v3_req]
keyUsage = keyEncipherment, dataEncipherment
extendedKeyUsage = serverAuth
subjectAltName = @alt_names
[alt_names]
DNS.1 = $ENV::DNS1
DNS.2 = $ENV::DNS2
#DNS.3 = $ENV::DNS3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment