bugfix
Signed-off-by: fbt <fbt@fleshless.org>
This commit is contained in:
parent
0cd6b1c441
commit
aba4bb1fff
|
@ -129,10 +129,10 @@ main() {
|
|||
|
||||
if ! [[ -f "$cfg_dir/chain.pem" ]]; then
|
||||
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
|
||||
|
||||
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"
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user