Skip to main content
Module

x/jose/index.ts>exportPKCS8

JWA, JWS, JWE, JWT, JWK, JWKS for Node.js, Browser, Cloudflare Workers, Deno, Bun, and other Web-interoperable runtimes.
Extremely Popular
Latest
function exportPKCS8
import { exportPKCS8 } from "https://deno.land/x/jose@v5.3.0/index.ts";

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>