Certificate.verifySpkac - Node documentation
method Certificate.verifySpkac

Usage in Deno

import { Certificate } from "node:crypto";
Certificate.verifySpkac(spkac: ArrayBufferView): boolean
import { Buffer } from 'node:buffer';
const { Certificate } = await import('node:crypto');

const spkac = getSpkacSomehow();
console.log(Certificate.verifySpkac(Buffer.from(spkac)));
// Prints: true or false

Parameters

spkac: ArrayBufferView

Return Type

boolean

true if the given spkac data structure is valid, false otherwise.