Skip to main content
Module

x/fido2/lib/keyUtils.js>PublicKey#toPem

A node.js library for performing FIDO 2.0 / WebAuthn server functionality
Go to Latest
method PublicKey.prototype.toPem
import { PublicKey } from "https://deno.land/x/fido2@3.3.4/lib/keyUtils.js";

Exports public key to PEM.

  • Reuses original PEM string if present.
  • Possible to force regeneration of PEM string by setting 'forcedExport' parameter to true
  • Throws on any kind of failure

Parameters

forcedExport