Browse Source

ugh

Signed-off-by: fbt <fbt@fleshless.org>
master
Jack L. Frost 2 months ago
parent
commit
123c34e1da
1 changed files with 2 additions and 7 deletions
  1. +2
    -7
      le-issue

+ 2
- 7
le-issue View File

@ -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…
Cancel
Save