mirror of
https://github.com/dehydrated-io/dehydrated.git
synced 2026-04-25 09:48:29 +02:00
throw error with information about OCSP deprecation if certificate doesn't indicate OCSP support
This commit is contained in:
@@ -9,6 +9,7 @@ This file contains a log of major changes in dehydrated
|
|||||||
- Only validate existance of wellknown directory or hook script when actually needed
|
- Only validate existance of wellknown directory or hook script when actually needed
|
||||||
- Also allow setting `KEEP_GOING` in config file instead of relying on cli arguments
|
- Also allow setting `KEEP_GOING` in config file instead of relying on cli arguments
|
||||||
- Allow skipping over OCSP stapling errors, indicate that some CAs no longer support OCSP
|
- Allow skipping over OCSP stapling errors, indicate that some CAs no longer support OCSP
|
||||||
|
- Throw error with information about OCSP deprecation if certificate doesn't indicate OCSP support
|
||||||
|
|
||||||
## [0.7.2] - 2025-05-18
|
## [0.7.2] - 2025-05-18
|
||||||
## Added
|
## Added
|
||||||
|
|||||||
@@ -1650,6 +1650,12 @@ update_ocsp_stapling() {
|
|||||||
|
|
||||||
local ocsp_url="$(get_ocsp_url "${cert}")"
|
local ocsp_url="$(get_ocsp_url "${cert}")"
|
||||||
|
|
||||||
|
if [[ -z "${ocsp_url}" ]]; then
|
||||||
|
echo " ! ERROR: OCSP stapling requested but no OCSP url found in certificate." >&2
|
||||||
|
echo " ! Keep in mind that some CAs ended support for OCSP: https://letsencrypt.org/2024/12/05/ending-ocsp/" >&2
|
||||||
|
return 1
|
||||||
|
fi
|
||||||
|
|
||||||
if [[ ! -e "${certdir}/ocsp.der" ]]; then
|
if [[ ! -e "${certdir}/ocsp.der" ]]; then
|
||||||
update_ocsp="yes"
|
update_ocsp="yes"
|
||||||
elif ! ("${OPENSSL}" ocsp -no_nonce -issuer "${chain}" -verify_other "${chain}" -cert "${cert}" -respin "${certdir}/ocsp.der" -status_age $((OCSP_DAYS*24*3600)) 2>&1 | grep -q "${cert}: good"); then
|
elif ! ("${OPENSSL}" ocsp -no_nonce -issuer "${chain}" -verify_other "${chain}" -cert "${cert}" -respin "${certdir}/ocsp.der" -status_age $((OCSP_DAYS*24*3600)) 2>&1 | grep -q "${cert}: good"); then
|
||||||
|
|||||||
Reference in New Issue
Block a user