Skip to content

Instantly share code, notes, and snippets.

@boina-n
Last active April 26, 2017 15:34
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 boina-n/5ac85fe1fbcf5eb4943c512e3fdbcc87 to your computer and use it in GitHub Desktop.
Save boina-n/5ac85fe1fbcf5eb4943c512e3fdbcc87 to your computer and use it in GitHub Desktop.
How to generate an ssl wildcard certificat for Cloud Foundry.
openssl req -new -nodes -out wc.cf.boina.csr -newkey rsa:2048 -keyout wc.cf.boina.key -config <(
cat <<-EOF
[req]
default_bits = 2048
prompt = no
default_md = sha256
req_extensions = req_ext
distinguished_name = dn
[ dn ]
C=FR
ST=Isère
L=Grenoble
O=boina
OU=Devops
emailAddress=email@example
CN = *.cf.boina.fr
[ req_ext ]
subjectAltName = @alt_names
[ alt_names ]
DNS.1 = *.boina.fr
DNS.2 = *.cf.boina.fr
DNS.2 = *.login.cf.boina.fr
DNS.3 = *.uaa.cf.boina.fr
DNS.4 = *.apps.boina.fr
EOF
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment