method Certificate.exportChallenge
Jump to headingCertificate.exportChallenge(spkac: BinaryLike): Bufferconst { Certificate } = await import('node:crypto');
const spkac = getSpkacSomehow();
const challenge = Certificate.exportChallenge(spkac);
console.log(challenge.toString('utf8'));
// Prints: the challenge as a UTF8 string
Parameters Jump to heading
Jump to headingspkac: BinaryLikeReturn Type Jump to heading
BufferThe challenge component of the spkac data structure, which includes a public key and a challenge.