---
title: "Comment by Kote Isaev on \"How to generate and use an SSL certificate in NodeJS\" | Hashnode"
description: "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 propertie"
url: "https://hashnode.com/posts/ssl-certificate-in-nodejs/61debad544f1964f4fa7eecc/comment/63ab2d2af42b1f067f837e40"
---

[Discussion](https://hashnode.com/posts/ssl-certificate-in-nodejs/61debad544f1964f4fa7eecc)

Comment [How to generate and use an SSL certificate in NodeJS](https://hashnode.com/posts/ssl-certificate-in-nodejs/61debad544f1964f4fa7eecc)

[Kote Isaev](https://hashnode.com/@koteisaev)

[Dec 27, 2022](https://hashnode.com/posts/ssl-certificate-in-nodejs/61debad544f1964f4fa7eecc/comment/63ab2d2af42b1f067f837e40)

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);
```

[Rushabh Javeri](https://hashnode.com/@rushabhhere)

[Oct 9, 2024](https://hashnode.com/posts/ssl-certificate-in-nodejs/61debad544f1964f4fa7eecc/comment/63ab2d2af42b1f067f837e40#reply-6706633432bec478319891ee)

I agree
