▸ 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)
Name | Type | Description |
---|---|---|
key |
KeyLike |
Key representation to transform to an PEM-encoded SPKI string format. |
Promise
<string
>