Skip to content

Instantly share code, notes, and snippets.

@bq1990
Created June 6, 2019 03:25
Show Gist options
  • Save bq1990/0235ef2a0bac5bfcd6baaf4611554b5c to your computer and use it in GitHub Desktop.
Save bq1990/0235ef2a0bac5bfcd6baaf4611554b5c to your computer and use it in GitHub Desktop.
Generate SAN csr
[ req ]
default_bits = 4096
prompt = no
encrypt_key = no
default_md = sha256
distinguished_name = dn
req_extensions = req_ext
[ dn ]
CN = example.com
emailAddress = ssl@example.com
O = Example Company
OU = Example Unit
L = City
ST = State
C = US
[ req_ext ]
subjectAltName = DNS: www.example.com, DNS: mail.example.com, DNS: files.example.com
openssl req -new -config example.com.conf -keyout example.com.key -out example.com.csr
openssl req -text -noout -verify -in example.com.csr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment