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
fork icon10
star icon4
watch icon9