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

x/jwe_cookie_map/deps.ts>jose.exportSPKI

Easy JWE Cookies for Deno
Go to Latest
function jose.exportSPKI
import { jose } from "https://deno.land/x/jwe_cookie_map@v1.0.0-rc0/deps.ts";
const { exportSPKI } = jose;

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

Parameters

key: KeyLike

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

Returns

Promise<string>