diff --git a/renew_cert.sh b/renew_cert.sh index d10adee..8d41d00 100755 --- a/renew_cert.sh +++ b/renew_cert.sh @@ -26,11 +26,11 @@ else certbot certonly \ --csr $base_dir/${fqdn}.csr \ --cert-path $base_dir/${fqdn}.crt \ - --chain-path $base_dir/${fqdn}-chained.crt \ + --chain-path $base_dir/${fqdn}-chain.crt \ + --fullchain-path $base_dir/${fqdn}-chained.crt \ --webroot \ -w /var/www/le-challenges/ \ --agree-tos \ --register-unsafely-without-email || die "Error while signing certificate" - mv 0000_chain.pem $base_dir/${fqdn}-chained.crt rc-service ${service} reload fi