mirror of
https://github.com/dehydrated-io/dehydrated.git
synced 2026-01-11 22:30:44 +01:00
OCSP stapling file is updated after hooks are called #312
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @NotActuallyTerry on GitHub (Mar 17, 2018).
With
OCSP_FETCH="yes", the code responsible for fetching the OCSP response is run after the deploy_cert & unchanged_cert hooks are called. This makes it impossible to update the stapling files for haproxy & other webservers that require the file to be named in a specific way.Perhaps one way of solving it could be calling a new hook
ocsp_updatewhenever the response is updated:[[ -n "${HOOK}" ]] && "${HOOK}" "ocsp_update" "${domain}" "${certdir}/ocsp.der"@lukas2511 commented on GitHub (Apr 8, 2018):
I merged your pull-request but extended it in
8ba56a8048. Basically renamed the hook to deploy_ocsp (to be similar to deploy_cert) and exported altnames for use inside the hook. Thanks for the suggestion and the initial pull-request!@zhangyoufu commented on GitHub (May 15, 2020):
If I understand correctly,
deploy_ocsphook should be responsible for triggering cert/key/ocsp reload, anddeploy_certhook should not be used. Just in case a certificate was issued successfully, while fetching ocsp failed. A new cert should not be used in conjunction with oldocsp.der.