Skip to content

Instantly share code, notes, and snippets.

@adampats
Created September 15, 2015 18:03
Show Gist options
  • Select an option

  • Save adampats/ebd85e59e2febe2d3f2c to your computer and use it in GitHub Desktop.

Select an option

Save adampats/ebd85e59e2febe2d3f2c to your computer and use it in GitHub Desktop.
Sample cert request with SAN
# create private key
openssl genrsa -out app.key 2048
# create config/ini file for request
# generate csr
openssl req -new -out app.csr -key app.key -config request.ini
# issue from CA using CSR
[req]
distinguished_name = req_distinguished_name
req_extensions = v3_req
prompt = no
[req_distinguished_name]
C = US
ST = WA
L = Seattle
O = Company
OU = Department
CN = app.domain.net
emailAddress = [email protected]
[v3_req]
keyUsage = keyEncipherment, dataEncipherment
extendedKeyUsage = serverAuth
subjectAltName = @alt_names
[alt_names]
DNS.1 = app.domain.net
DNS.2 = hostname.domain.net
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment