mirror of
https://github.com/dehydrated-io/dehydrated.git
synced 2026-03-21 16:49:01 +01:00
Adding the invalid_challenge hook (#278)
This commit is contained in:
@@ -74,5 +74,19 @@ unchanged_cert() {
|
||||
# The path of the file containing the intermediate certificate(s).
|
||||
}
|
||||
|
||||
function invalid_challenge {
|
||||
local DOMAIN="${1}" RESPONSE="${2}"
|
||||
|
||||
# This hook is called if the challenge response has failed, so domain
|
||||
# owners can be aware and act accordingly.
|
||||
#
|
||||
# Parameters:
|
||||
# - DOMAIN
|
||||
# The primary domain name, i.e. the certificate common
|
||||
# name (CN).
|
||||
# - RESPONSE
|
||||
# The response that the verification server returned
|
||||
}
|
||||
|
||||
HANDLER="$1"; shift
|
||||
"$HANDLER" "$@"
|
||||
"$HANDLER" "$@"
|
||||
Reference in New Issue
Block a user