X-Git-Url: https://git.distorted.org.uk/~mdw/distorted-letsencrypt/blobdiff_plain/98f7510dc1dd5f05f4c235a6c1ec44b9b6737b6f..08eee2f60b5ea462a83a523a9ca6f28f3d78e9e2:/bin/make-cert diff --git a/bin/make-cert b/bin/make-cert index 97c946f..b6a86df 100755 --- a/bin/make-cert +++ b/bin/make-cert @@ -14,7 +14,8 @@ case $# in 0) ;; *) fail_usage ;; esac prepare_tmp $tag ## Get started. -cd $home/cert/$tag +cert=$home/cert/$tag +cd $cert openssl req -in req -out $tmp/req.der -outform der sans=$(openssl req -in req -text -noout | sed -n ' @@ -28,4 +29,10 @@ sans=$(openssl req -in req -text -noout | }') make_le_conf $sans -cat "$tmp/le.conf" +cd $tmp +$home/letsencrypt/letsencrypt-auto -c "$tmp/le.conf" --text \ + -a webroot --csr $tmp/req.der certonly + +cd $cert +cat $tmp/0001_chain.pem $home/le-root.cert >full-chain.new +mv full-chain.new full-chain