mirror of
https://github.com/dehydrated-io/dehydrated.git
synced 2026-05-17 04:17:00 +02:00
Show error if chain is configured for a CA which doesn't offer alternate chains (fixes #845)
This commit is contained in:
@@ -1198,6 +1198,9 @@ sign_csr() {
|
|||||||
crt="$(signed_request "${certificate}" "" 4>"${resheaders}")"
|
crt="$(signed_request "${certificate}" "" 4>"${resheaders}")"
|
||||||
|
|
||||||
if [ -n "${PREFERRED_CHAIN:-}" ]; then
|
if [ -n "${PREFERRED_CHAIN:-}" ]; then
|
||||||
|
if ! (grep -Ei '^link:' "${resheaders}" | grep -q -Ei 'rel="alternate"'); then
|
||||||
|
_exiterr "Preferred chain defined but CA doesn't offer chain selection."
|
||||||
|
fi
|
||||||
foundaltchain=0
|
foundaltchain=0
|
||||||
altcn="$(get_last_cn "${crt}")"
|
altcn="$(get_last_cn "${crt}")"
|
||||||
altoptions="${altcn}"
|
altoptions="${altcn}"
|
||||||
|
|||||||
Reference in New Issue
Block a user