Skip to content
This repository has been archived by the owner on Nov 19, 2020. It is now read-only.

Commit

Permalink
Add ssl config for cert generation
Browse files Browse the repository at this point in the history
  • Loading branch information
danhigham committed Mar 8, 2016
1 parent caf4acf commit 2bb337b
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions certs/openssl.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
[req]
distinguished_name = req_distinguished_name
req_extensions = v3_req

[req_distinguished_name]
countryName = US
countryName_default = US
stateOrProvinceName = CA
localityName = San Francisco
organizationalUnitName = Platform Engineering
commonName = Pivotal
commonName_max = 64

[ v3_req ]
# Extensions to add to a certificate request
basicConstraints = CA:FALSE
keyUsage = nonRepudiation, digitalSignature, keyEncipherment
subjectAltName = @alt_names

[alt_names]
DNS.1 = *.system.{{ cf_ip }}.xip.io
IP.1 = 40.118.242.176
DNS.2 = *.login.system.{{ cf_ip }}.xip.io
IP.2 = 40.118.242.176
DNS.3 = *.uaa.system.{{ cf_ip }}.xip.io
IP.3 = 40.118.242.176
DNS.4 = *.app.{{ cf_ip }}.xip.io
IP.4 = 40.118.242.176

# openssl genrsa -out server.key 2048
# openssl req -new -out sub1.csr -key server.key -config openssl.conf -subj "/C=US/ST=CA/L=San Francisco/O=Pivotal Labs/OU=Platform Engineering/CN={{ cf_ip }}.xip.io"
# openssl req -text -noout -in sub1.csr
# openssl x509 -req -days 3650 -in sub1.csr -signkey server.key -out sub1.crt -extensions v3_req -extfile openssl.conf
# openssl x509 -in sub1.crt -text -noout

0 comments on commit 2bb337b

Please sign in to comment.