Not same type of alg

This commit is contained in:
Fang-Pen Lin
2025-11-07 09:20:14 -08:00
parent 72717cdc58
commit 4d9833acd6
@@ -354,7 +354,7 @@ export const pkiAcmeServiceFactory = ({
const decodedEabPayload = decoder.decode(eabPayload); const decodedEabPayload = decoder.decode(eabPayload);
const eabJWK = JSON.parse(decodedEabPayload); const eabJWK = JSON.parse(decodedEabPayload);
const eabPayloadJwkThumbprint = await calculateJwkThumbprint(eabJWK, "sha256"); const eabPayloadJwkThumbprint = await calculateJwkThumbprint(eabJWK, "sha256");
if (eabPayloadJwkThumbprint !== publicKeyThumbprint || eabAlg !== alg) { if (eabPayloadJwkThumbprint !== publicKeyThumbprint) {
throw new AcmeBadPublicKeyError({ throw new AcmeBadPublicKeyError({
message: "External account binding public key thumbprint or algorithm mismatch" message: "External account binding public key thumbprint or algorithm mismatch"
}); });