Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

node.js generate certificate

const { Certificate } = await import('crypto');
const spkac = getSpkacSomehow();

const Cert = Certificate();
console.log(Cert)

const PublicKey = cert.exportPublicKey(spkac);
console.log(PublicKey);
// Prints: the public key as <Buffer ...>
 
PREVIOUS NEXT
Tagged: #generate #certificate
ADD COMMENT
Topic
Name
1+3 =