4 prog
=$
(readlink
-e
"$0")
5 .
"${prog%/*}/../config.sh"
10 ## Pick out the certificate tag.
11 case $# in 0) fail_usage
;; esac
13 case $# in 0) ;; *) fail_usage
;; esac
20 openssl req
-in req
-out
$tmp/req.der
-outform der
21 sans
=$
(openssl req
-in req
-text
-noout |
24 /^ *X509v3 Subject Alternative Name: $/ {
34 $home/letsencrypt
/letsencrypt-auto
-c
"$tmp/le.conf" --text \
35 -a webroot
--csr
$tmp/req.der certonly
38 cat $tmp/0001_chain.pem
$home/le-root.cert
>full-chain.new
39 mv full-chain.new full-chain