From: Ike Johnson Date: Sat, 17 Mar 2018 06:52:45 +0000 (+0800) Subject: Add ocsp_update hook X-Git-Tag: v0.6.2~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2fca309e94386c0e2b85c0dc86087a288fd22fbf;p=thirdparty%2Fdehydrated.git Add ocsp_update hook In relation to issue #513 --- diff --git a/dehydrated b/dehydrated index c28418b..01e502e 100755 --- a/dehydrated +++ b/dehydrated @@ -1316,6 +1316,7 @@ command_sign_domains() { ocsp_log="$("${OPENSSL}" ocsp -no_nonce -issuer "${chain}" -verify_other "${chain}" -cert "${cert}" -respout "${certdir}/ocsp-${ocsp_timestamp}.der" -url "${ocsp_url}" 2>&1)" || _exiterr "Error while fetching OCSP information: ${ocsp_log}" fi ln -sf "ocsp-${ocsp_timestamp}.der" "${certdir}/ocsp.der" + [[ -n "${HOOK}" ]] && "${HOOK}" "ocsp_update" "${domain}" "${certdir}/ocsp.der" else echo " + OSCP stapling file is still valid (skipping update)" fi