import { exportSPKI } from "https://deno.land/x/jose@v4.11.2/key/export.ts";
Exports a runtime-specific public key representation (KeyObject or CryptoKey) to a PEM-encoded SPKI string format.
Examples
Usage
Usage
const spkiPem = await jose.exportSPKI(publicKey)
console.log(spkiPem)
Parameters
key: KeyLike
Key representation to transform to a PEM-encoded SPKI string format.