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