mirror of
https://github.com/certd/certd.git
synced 2026-04-24 12:27:25 +08:00
chore: 1
This commit is contained in:
@@ -39,12 +39,12 @@ async function verifyHttpChallenge(authz, challenge, keyAuthorization, suffix =
|
|||||||
const resp = await axios.get(challengeUrl, { httpsAgent });
|
const resp = await axios.get(challengeUrl, { httpsAgent });
|
||||||
data = (resp.data || '').replace(/\s+$/, '');
|
data = (resp.data || '').replace(/\s+$/, '');
|
||||||
}catch (e) {
|
}catch (e) {
|
||||||
log(`[error] HTTP request error from ${authz.identifier.value}`,e);
|
log(`[error] HTTP request error from ${authz.identifier.value}`,e.message);
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!data || (data !== keyAuthorization)) {
|
if (!data || (data !== keyAuthorization)) {
|
||||||
log(`[error] Authorization not found in HTTPS response from ${authz.identifier.value}`);
|
log(`[error] Authorization not found in HTTP response from ${authz.identifier.value}`);
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
return true
|
return true
|
||||||
|
|||||||
Reference in New Issue
Block a user