How to use the createCertificate function from node-forge
Find comprehensive JavaScript node-forge.createCertificate code examples handpicked from public code repositorys.
11 12 13 14 15 16 17 18 19 20
process.exit(1) }) router.get('/generatecert', function (req, res, next) { const keys = pki.rsa.generateKeyPair(2048) const cert = pki.createCertificate() cert.publicKey = keys.publicKey res.send({ keys: keys, cert: cert
10
4
9
node-forge.pki is the most popular function in node-forge (10287 examples)