How to generate and use an SSL certificate in NodeJS
In this article, we will see how can we generate an SSL certificate for our development server. And later on, we will see how can we use that certificate inside our application.
Let's Create a Demo App in Express js
To create a new npm project, let's...
deviloper.in5 min read
Headline is quite misleading to the generate part. I expected to see the code that would produce SSL certificate using only nodejs API calls. Like
let properties = { country: "GE", organization: "My Company Inc.", unit: "My Super Authority", isAuthority: true } let csr = await certificatesAPI.produceCSR(privateKey, publicKey, properties); let x509Cert = await certificatesAPI.signCSRToX509(csr, privateKey, publicKey);