mirror of
https://github.com/aljazceru/addons.git
synced 2025-12-17 13:14:21 +01:00
Upgrade certbot; add preferred chain flag (#2230)
This commit is contained in:
@@ -123,12 +123,14 @@ if [ "$CHALLENGE" == "dns" ]; then
|
|||||||
certbot certonly --non-interactive --keep-until-expiring --expand \
|
certbot certonly --non-interactive --keep-until-expiring --expand \
|
||||||
--email "$EMAIL" --agree-tos \
|
--email "$EMAIL" --agree-tos \
|
||||||
--config-dir "$CERT_DIR" --work-dir "$WORK_DIR" \
|
--config-dir "$CERT_DIR" --work-dir "$WORK_DIR" \
|
||||||
--preferred-challenges "$CHALLENGE" "${DOMAIN_ARR[@]}" "${PROVIDER_ARGUMENTS[@]}"
|
--preferred-challenges "$CHALLENGE" "${DOMAIN_ARR[@]}" "${PROVIDER_ARGUMENTS[@]}" \
|
||||||
|
--preferred-chain "ISRG Root X1"
|
||||||
else
|
else
|
||||||
certbot certonly --non-interactive --keep-until-expiring --expand \
|
certbot certonly --non-interactive --keep-until-expiring --expand \
|
||||||
--email "$EMAIL" --agree-tos \
|
--email "$EMAIL" --agree-tos \
|
||||||
--config-dir "$CERT_DIR" --work-dir "$WORK_DIR" \
|
--config-dir "$CERT_DIR" --work-dir "$WORK_DIR" \
|
||||||
--preferred-challenges "$CHALLENGE" "${DOMAIN_ARR[@]}" "${ACME_CUSTOM_SERVER_ARGUMENTS[@]}" --standalone
|
--preferred-challenges "$CHALLENGE" "${DOMAIN_ARR[@]}" "${ACME_CUSTOM_SERVER_ARGUMENTS[@]}" --standalone \
|
||||||
|
--preferred-chain "ISRG Root X1"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Get the last modified cert directory and copy the cert and private key to store
|
# Get the last modified cert directory and copy the cert and private key to store
|
||||||
|
|||||||
Reference in New Issue
Block a user