ugh
Signed-off-by: fbt <fbt@fleshless.org>
This commit is contained in:
parent
4fd60b4dde
commit
123c34e1da
9
le-issue
9
le-issue
|
@ -122,7 +122,7 @@ main() {
|
|||
acme-tiny \
|
||||
--account-key "$cfg_dir/account.key" \
|
||||
--csr "$cfg_dir/domains/${domains[0]}/request.csr" \
|
||||
--acme-dir "$challenge_dir" > "$cfg_dir/domains/${domains[0]}/certificate.pem"
|
||||
--acme-dir "$challenge_dir" | grep -vE '^$' > "$cfg_dir/domains/${domains[0]}/certificate.pem"
|
||||
|
||||
if (( $? )); then
|
||||
return 1
|
||||
|
@ -130,12 +130,7 @@ main() {
|
|||
|
||||
gen_renew_config "${domains[@]}" > "$cfg_dir/domains/${domains[0]}/renew.cfg"
|
||||
|
||||
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/chain.pem"
|
||||
fi
|
||||
|
||||
cat "$cfg_dir/domains/${domains[0]}/certificate.pem" "$cfg_dir/chain.pem" > "$cfg_dir/domains/${domains[0]}/fullchain.pem"
|
||||
ln -s "$cfg_dir/domains/${domains[0]}/certificate.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