mirror of
https://github.com/plantroon/acme.sh.git
synced 2024-12-22 13:11:41 +00:00
improve chain.pem exists evaluating
This commit is contained in:
parent
fe1bfe9ae1
commit
b8d0d3c242
@ -115,7 +115,7 @@ vault_deploy() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# To make it compatible with the wrong ca path `chain.pem` which was used in former versions
|
# To make it compatible with the wrong ca path `chain.pem` which was used in former versions
|
||||||
if _get "$URL/chain.pem" >/dev/null; then
|
if _contains "$(_get "$URL/chain.pem")" "-----BEGIN CERTIFICATE-----"; then
|
||||||
_err "The CA certificate has moved from chain.pem to ca.pem, if you don't depend on chain.pem anymore, you can delete it to avoid this warning"
|
_err "The CA certificate has moved from chain.pem to ca.pem, if you don't depend on chain.pem anymore, you can delete it to avoid this warning"
|
||||||
_info "Updating CA certificate to $URL/chain.pem for backward compatibility"
|
_info "Updating CA certificate to $URL/chain.pem for backward compatibility"
|
||||||
if [ -n "$VAULT_KV_V2" ]; then
|
if [ -n "$VAULT_KV_V2" ]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user