Skip to main content
Deno 2 is finally here 🎉️
Learn more
Latest
function jose.exportPKCS8
import { jose } from "https://deno.land/x/jwe_cookie_map@v1.0.1/src/deps.ts";
const { exportPKCS8 } = jose;

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

Parameters

key: KeyLike

Key representation to transform to a PEM-encoded PKCS8 string format.

Returns

Promise<string>