Skip to content

Latest commit

 

History

History
22 lines (14 loc) · 530 Bytes

key_export.exportSPKI.md

File metadata and controls

22 lines (14 loc) · 530 Bytes

Function: exportSPKI

exportSPKI(key): Promise<string>

Exports a runtime-specific public key representation (KeyObject or CryptoKey) to an PEM-encoded SPKI string format.

example Usage

const spkiPem = await jose.exportSPKI(publicKey)

console.log(spkiPem)

Parameters

Name Type Description
key KeyLike Key representation to transform to an PEM-encoded SPKI string format.

Returns

Promise<string>