mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-06 23:27:14 +00:00
Not same type of alg
This commit is contained in:
@@ -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"
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user