await crypto.subtle.importKey(
"spki",
binaryDer, // where binaryDer is as derived here: https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/importKey#subjectpublickeyinfo_import (but with BEGIN CERTIFICATE and END CERTIFICATE)
{
name: "RSASSA-PKCS1-v1_5",
hash: "SHA-1",
},
true,
["verify"],
);
await crypto.subtle.importKey(
"spki",
binaryDer, // where binaryDer is as derived here: https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/importKey#subjectpublickeyinfo_import (but with BEGIN CERTIFICATE and END CERTIFICATE)
{
name: "RSASSA-PKCS1-v1_5",
hash: "SHA-1",
},
true,
["verify"],
);