Skip to content

Instantly share code, notes, and snippets.

@dwallraff
Last active December 20, 2016 18:53
Show Gist options
  • Save dwallraff/c1ed31291ac7cf19304b to your computer and use it in GitHub Desktop.
Save dwallraff/c1ed31291ac7cf19304b to your computer and use it in GitHub Desktop.
Temp openssl conf file for Multiple SAN Self-Signed SSL Cert (used in https://gist.github.com/dwallraff/60cd13d68c7de76335a3)
[ req ]
distinguished_name = req_distinguished_name
req_extensions = server_req_extensions
prompt = no
[ req_distinguished_name ]
C = <Your country> # Only 2 characters
ST = <Your state> # Only 2 characters
L = <Your city>
O = <Your org>
OU = <Your OU>
CN = <Your URL>
emailAddress = <Your email address>
####################################################################
[ server_req_extensions ]
keyUsage = critical, digitalSignature, keyEncipherment
subjectAltName = @alternate_names
basicConstraints = CA:FALSE
####################################################################
[ alternate_names ]
DNS.1 = <SAN 1>
DNS.2 = <SAN 2>
DNS.3 = <SAN 3>
DNS.4 = <SAN 4>
## Standard Spring Cloud Services domains
# DNS.1 = *.sys.<domain>
# DNS.2 = *.apps.<domain>
# DNS.3 = *.login.sys.<domain>
# DNS.4 = *.uaa.sys.<domain>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment