method Certificate.verifySpkac
Certificate.verifySpkac(spkac: ArrayBufferView): boolean
Deprecated
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
boolean
true
if the given spkac
data structure is valid, false
otherwise.