---
title: "Discussion on \"How to generate and use an SSL certificate in NodeJS\" | Hashnode"
description: "Discussion on \"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.\nLet's Create a Demo App in Express js\nTo create a new npm project, let's..."
url: "https://hashnode.com/posts/ssl-certificate-in-nodejs/61debad544f1964f4fa7eecc"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How to generate and use an SSL certificate in NodeJS](https://deviloper.in/ssl-certificate-in-nodejs?utm_source=hashnode&utm_medium=feed)

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...

Jan 12, 2022 · 5 min read · deviloper.in  
Read the article

-   [#nodejs](https://hashnode.com/tag/nodejs)
-   [#expressjs-cilb5apda0066e053g7td7q24](https://hashnode.com/tag/expressjs-cilb5apda0066e053g7td7q24)
-   [#ssl](https://hashnode.com/tag/ssl)

## Written by

[Rahul Dubey](https://hashnode.com/@D-eviloper)

@D-eviloper · Bengalore,India

  
[View profile](https://hashnode.com/@D-eviloper)

Developer | Artist | Blogger

I am Developer, Artist and trying my luck on blogging as well. Well I am Ambitious, Passionate towards Learning, The Night Owl, And I Like challenges...

## Responses 1

Markdown supported · ⌘↵ to post

[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
