Skip to main content

verifySpkac

method Certificate.verifySpkac
Jump to headingCertificate.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 Jump to heading

Jump to headingspkac: ArrayBufferView

Return Type Jump to heading

boolean

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

Back to top