exportDerToRsaJwk
exportDerToRsaJwk(
derKey
,isPublic
,usages
):JsonWebKey
Utility function to export a DER-format RSA key to JWK format
Parameters
derKey
ArrayBuffer
The DER-encoded key as ArrayBuffer
isPublic
boolean
= true
Whether the key is a public key
usages
string
[]
Array of key usages (e.g., ['encrypt', 'decrypt'])
Returns
A JsonWebKey object
Last updated: Sep 30, 2025