File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -7,15 +7,16 @@ CERT_KEY="/cert/${FIRST_VIRTUAL_HOST:-localhost}.key"
77CA_CERT=" /rootCA/rootCA.pem"
88CA_KEY=" /rootCA/rootCA-key.pem"
99
10- IP_ADDRESS=$( hostname -i)
11- export IP_ADDRESS
12-
1310envsubst < /etc/https-proxy/cert.cfg.template > /tmp/cert.cfg
1411
1512for host in ${VIRTUAL_HOST:- localhost} ; do
1613 echo " dns_name = $host " >> /tmp/cert.cfg
1714done
1815
16+ for ip_address in $( hostname -i) ; do
17+ echo " ip_address = $ip_address " >> /tmp/cert.cfg
18+ done
19+
1920certtool --generate-privkey --outfile " ${CERT_KEY} "
2021
2122if [ ! -r " ${CA_CERT} " ] || [ ! -r " ${CA_KEY} " ]; then
Original file line number Diff line number Diff line change @@ -2,4 +2,3 @@ organization = "Development certificate"
22unit = "${HOSTNAME}"
33cn = "${FIRST_VIRTUAL_HOST}"
44expiration_days = ${EXPIRATION_DAYS}
5- ip_address = "${IP_ADDRESS}"
You can’t perform that action at this time.
0 commit comments