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

x/jose/index.ts>exportSPKI

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

Exports a runtime-specific public key representation (!KeyObject or !CryptoKey) to a PEM-encoded SPKI string format.

This function is exported (as a named export) from the main 'jose' module entry point as well as from its subpath export 'jose/key/export'.

Parameters

key: KeyLike

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

Returns

Promise<string>