as

Settings
Sign out
Notifications
Alexa
Amazon Appstore
AWS
Documentation
Support
Contact Us
My Cases
Get Started
Design and Develop
Publish
Reference
Support

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

JsonWebKey

A JsonWebKey object


Last updated: Sep 30, 2025