mirror of https://github.com/certd/certd
chore: 1
parent
d75fcb7fec
commit
f5d1d1a0b7
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue