Skip to main content
Module

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

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

Import public key from SPKI PEM. Throws on any type of failure.

Parameters

pem
  • PEM formatted string
hashName