mirror of
https://github.com/plantroon/acme.sh.git
synced 2024-12-26 15:02:03 +00:00
Add ACME v2 test around cert copy. Fixes #1330
Without this, the work done a few lines above is clobbered, leaving the fullchain.cer containing only the certificate, not the CA and certificate chain.
This commit is contained in:
parent
d71595fc75
commit
7445a3be59
2
acme.sh
2
acme.sh
@ -4078,7 +4078,9 @@ $_authorizations_map"
|
|||||||
_info "Your cert key is in $(__green " $CERT_KEY_PATH ")"
|
_info "Your cert key is in $(__green " $CERT_KEY_PATH ")"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ "$ACME_VERSION" != "2" ]; then
|
||||||
cp "$CERT_PATH" "$CERT_FULLCHAIN_PATH"
|
cp "$CERT_PATH" "$CERT_FULLCHAIN_PATH"
|
||||||
|
fi
|
||||||
|
|
||||||
if [ ! "$USER_PATH" ] || [ ! "$IN_CRON" ]; then
|
if [ ! "$USER_PATH" ] || [ ! "$IN_CRON" ]; then
|
||||||
USER_PATH="$PATH"
|
USER_PATH="$PATH"
|
||||||
|
Loading…
Reference in New Issue
Block a user