mirror of
https://gitlab.com/sinclair2/bacme
synced 2025-08-22 09:57:34 +00:00
fixed bug when retrieving the challenge URL and token
This commit is contained in:
parent
6fa3617b55
commit
0976c0b3fc
@ -1,6 +1,6 @@
|
|||||||
# ChangeLog
|
# ChangeLog
|
||||||
|
|
||||||
## [Unreleased]
|
## [1.1.1] - 2024-07-17
|
||||||
### Changed
|
### Changed
|
||||||
- case-insensitive parsing of location HTTP header field (#4)
|
- case-insensitive parsing of location HTTP header field (#4)
|
||||||
- wait in several attempts for successful challenge validation instead of
|
- wait in several attempts for successful challenge validation instead of
|
||||||
@ -14,6 +14,7 @@
|
|||||||
- Let's Encrypt may send emails to you about the client software accessing
|
- Let's Encrypt may send emails to you about the client software accessing
|
||||||
them. For example they informed about clients still using ACMEv1
|
them. For example they informed about clients still using ACMEv1
|
||||||
(not bacme). In such emails the user agent is mentioned.
|
(not bacme). In such emails the user agent is mentioned.
|
||||||
|
- fixed bug when retrieving the challenge URL and token
|
||||||
|
|
||||||
|
|
||||||
## [1.1.0] 2020-02-02
|
## [1.1.0] 2020-02-02
|
||||||
|
4
bacme
4
bacme
@ -318,9 +318,9 @@ do
|
|||||||
log " for ${DOMAINS[$i]}"
|
log " for ${DOMAINS[$i]}"
|
||||||
debug " authorization_url=${AUTHORIZATION_URLS[$i]}"
|
debug " authorization_url=${AUTHORIZATION_URLS[$i]}"
|
||||||
RESPONSE="$(api_request "${AUTHORIZATION_URLS[$i]}" "")"
|
RESPONSE="$(api_request "${AUTHORIZATION_URLS[$i]}" "")"
|
||||||
CHALLENGE_URLS[$i]="$(echo "${RESPONSE}" | flatstring | sed 's/^.*"type": "http-01", "status": "pending", "url": "\([^"]*\)", "token": "\([^"]*\)".*$/\1/')"
|
CHALLENGE_URLS[$i]="$(echo "${RESPONSE}" | flatstring | sed 's/^.*"type": "http-01"[^{}]*"url": "\([^"]*\)".*$/\1/')"
|
||||||
debug " challenge_url=${CHALLENGE_URLS[$i]}"
|
debug " challenge_url=${CHALLENGE_URLS[$i]}"
|
||||||
CHALLENGE_TOKENS[$i]="$(echo "${RESPONSE}" | flatstring | sed 's/^.*"type": "http-01", "status": "pending", "url": "\([^"]*\)", "token": "\([^"]*\)".*$/\2/')"
|
CHALLENGE_TOKENS[$i]="$(echo "${RESPONSE}" | flatstring | sed 's/^.*"type": "http-01"[^{}]*"token": "\([^"]*\)".*$/\1/')"
|
||||||
debug " challenge_token=${CHALLENGE_TOKENS[$i]}"
|
debug " challenge_token=${CHALLENGE_TOKENS[$i]}"
|
||||||
KEYAUTHS[$i]="${CHALLENGE_TOKENS[$i]}.${JWK_THUMBPRINT}"
|
KEYAUTHS[$i]="${CHALLENGE_TOKENS[$i]}.${JWK_THUMBPRINT}"
|
||||||
debug " keyauth=${KEYAUTHS[$i]}"
|
debug " keyauth=${KEYAUTHS[$i]}"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user