mirror of
https://github.com/dehydrated-io/dehydrated.git
synced 2026-04-18 22:49:47 +02:00
revocation: don't fail if certificate already has been revoked (fixes #236)
This commit is contained in:
@@ -412,6 +412,9 @@ http_request() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ ! "${statuscode:0:1}" = "2" ]]; then
|
if [[ ! "${statuscode:0:1}" = "2" ]]; then
|
||||||
|
if [[ "${2}" = "${CA_REVOKE_CERT}" ]] && [[ "${statuscode}" = "409" ]]; then
|
||||||
|
grep -q "Certificate already revoked" "${tempcont}" && return
|
||||||
|
fi
|
||||||
if [[ ! "${2}" = "${CA_TERMS}" ]] || [[ ! "${statuscode:0:1}" = "3" ]]; then
|
if [[ ! "${2}" = "${CA_TERMS}" ]] || [[ ! "${statuscode:0:1}" = "3" ]]; then
|
||||||
echo " + ERROR: An error occurred while sending ${1}-request to ${2} (Status ${statuscode})" >&2
|
echo " + ERROR: An error occurred while sending ${1}-request to ${2} (Status ${statuscode})" >&2
|
||||||
echo >&2
|
echo >&2
|
||||||
|
|||||||
Reference in New Issue
Block a user