Signed-off-by: fbt <fbt@fleshless.org>
This commit is contained in:
Jack L. Frost 2018-08-31 05:58:28 +03:00
parent 0cd6b1c441
commit aba4bb1fff

View File

@ -129,10 +129,10 @@ main() {
if ! [[ -f "$cfg_dir/chain.pem" ]]; then if ! [[ -f "$cfg_dir/chain.pem" ]]; then
err "Intermediate certificate not found, downloading." err "Intermediate certificate not found, downloading."
curl "https://letsencrypt.org/certs/lets-encrypt-x3-cross-signed.pem" > "$cfg_dir/letsencrypt.pem" curl "https://letsencrypt.org/certs/lets-encrypt-x3-cross-signed.pem" > "$cfg_dir/chain.pem"
fi fi
cat "$cfg_dir/domains/${domains[0]}/certificate.pem" "$cfg_dir/letsencrypt.pem" > "$cfg_dir/domains/${domains[0]}/fullchain.pem" cat "$cfg_dir/domains/${domains[0]}/certificate.pem" "$cfg_dir/chain.pem" > "$cfg_dir/domains/${domains[0]}/fullchain.pem"
err "Your certificate is available at $cfg_dir/domains/${domains[0]}/fullchain.pem" err "Your certificate is available at $cfg_dir/domains/${domains[0]}/fullchain.pem"
} }