import { exportPKCS8 } from "https://deno.land/x/jose@v4.11.2/key/export.ts";
Exports a runtime-specific private key representation (KeyObject or CryptoKey) to a PEM-encoded PKCS8 string format.
Examples
Usage
Usage
const pkcs8Pem = await jose.exportPKCS8(privateKey)
console.log(pkcs8Pem)
Parameters
key: KeyLike
Key representation to transform to a PEM-encoded PKCS8 string format.