Skip to content

Latest commit

 

History

History
26 lines (16 loc) · 598 Bytes

key_export.exportPKCS8.md

File metadata and controls

26 lines (16 loc) · 598 Bytes

Function: exportPKCS8

💗 Help the project

exportPKCS8(key): Promise<string>

Exports a runtime-specific private key representation (KeyObject or CryptoKey) to a PEM-encoded PKCS8 string format.

example Usage

const pkcs8Pem = await jose.exportPKCS8(privateKey)

console.log(pkcs8Pem)

Parameters

Name Type Description
key KeyLike Key representation to transform to a PEM-encoded PKCS8 string format.

Returns

Promise<string>