Last active
April 26, 2017 15:34
-
-
Save boina-n/5ac85fe1fbcf5eb4943c512e3fdbcc87 to your computer and use it in GitHub Desktop.
How to generate an ssl wildcard certificat for Cloud Foundry.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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