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