fd0cdf5f1045ce1422d742fcc485aa595a8d2b8c
[distorted-letsencrypt] / bin / make-cert
1 #! /bin/sh
2 set -e
3 usage=" TAG"
4 prog=$(readlink -e "$0")
5 . "${prog%/*}/../config.sh"
6 . "$home/lib/lib.sh"
7
8 run_as_user "$@"
9
10 ## Pick out the certificate tag.
11 case $# in 0) fail_usage ;; esac
12 tag=$1; shift
13 case $# in 0) ;; *) fail_usage ;; esac
14
15 prepare_tmp $tag
16
17 ## Let's go.
18 cert=$home/cert/$tag
19 cd $cert
20 dehydrated -f $HOME/dehydrated-config.sh -fc -s req >full-chain.new
21 mv full-chain.new full-chain