Certificate.prototype.exportPublicKey - Node documentation
method Certificate.prototype.exportPublicKey

Usage

import { Certificate } from "node:crypto";

Parameters

spkac: BinaryLike
optional
encoding: string

The encoding of the spkac string.

Return Type

Buffer

The public key component of the spkac data structure, which includes a public key and a challenge.