From: Lukas Schauer Date: Mon, 10 Jul 2017 23:30:30 +0000 (+0200) Subject: revocation: don't fail if certificate already has been revoked (fixes #236) X-Git-Tag: v0.5.0~25 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f86290ea52fae298c5ebdffefbe605d9f895703d;p=thirdparty%2Fdehydrated.git revocation: don't fail if certificate already has been revoked (fixes #236) --- diff --git a/dehydrated b/dehydrated index 06cde90..5dfb4a9 100755 --- a/dehydrated +++ b/dehydrated @@ -412,6 +412,9 @@ http_request() { fi 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 echo " + ERROR: An error occurred while sending ${1}-request to ${2} (Status ${statuscode})" >&2 echo >&2