as

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

exportDerToEcJwk

exportDerToEcJwk(derKey, isPublic, usages): JsonWebKey

Utility function to export a DER-format ECDH or ECDSA 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., ['deriveBits'])

Returns

JsonWebKey

A JsonWebKey object


Last updated: Sep 30, 2025