Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/jwe_cookie_map/deps.ts>jose.exportPKCS8

Easy JWE Cookies for Deno
Go to Latest
function jose.exportPKCS8
import { jose } from "https://deno.land/x/jwe_cookie_map@v1.0.0-rc0/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>