mirror of
https://github.com/dehydrated-io/dehydrated.git
synced 2026-05-07 07:33:26 +02:00
strip validationRecord from challenge before grepping for "url" string... (fixes #515)
This commit is contained in:
@@ -735,9 +735,9 @@ sign_csr() {
|
||||
challenge_names[${idx}]="${identifier}"
|
||||
challenge_tokens[${idx}]="$(echo "${challenge}" | get_json_string_value token)"
|
||||
if [[ ${API} -eq 2 ]]; then
|
||||
challenge_uris[${idx}]="$(echo "${challenge}" | get_json_string_value url)"
|
||||
challenge_uris[${idx}]="$(echo "${challenge}" | _sed 's/"validationRecord": ?\[[^]]+\]//g' | get_json_string_value url)"
|
||||
else
|
||||
challenge_uris[${idx}]="$(echo "${challenge}" | get_json_string_value uri)"
|
||||
challenge_uris[${idx}]="$(echo "${challenge}" | _sed 's/"validationRecord": ?\[[^]]+\]//g' | get_json_string_value uri)"
|
||||
fi
|
||||
|
||||
# Prepare challenge tokens and deployment parameters
|
||||
|
||||
Reference in New Issue
Block a user