Skip to main content
Certificate.prototype.exportPublicKey - node__crypto.d.ts - Node documentation
method Certificate.prototype.exportPublicKey

Usage in Deno

```typescript import { Certificate } from "node:node__crypto.d.ts"; ```
Certificate.prototype.exportPublicKey(
spkac: BinaryLike,
encoding?: string,
): Buffer
Deprecated

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.