---
title: "Discussion on \"How to setup HTTPS locally with create-react-app\" | Hashnode"
description: "Discussion on \"How to setup HTTPS locally with create-react-app\". Generally, we saw that the React app running locally on http://localhost:3000. But when we deploy and run the app on production we mostly host on HTTPS. Running HTTPS in development is helpful when you need to consume an API that is also serving requ..."
url: "https://hashnode.com/posts/how-to-setup-https-locally-with-create-react-app/5f241c49eab86e5020c37241"
---

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

Discussion

# [How to setup HTTPS locally with create-react-app](https://blog.ganeshagrawal.com/how-to-setup-https-locally-with-create-react-app?utm_source=hashnode&utm_medium=feed)

Generally, we saw that the React app running locally on http://localhost:3000. But when we deploy and run the app on production we mostly host on HTTPS. Running HTTPS in development is helpful when you need to consume an API that is also serving requ...

Jul 31, 2020 · 3 min read · blog.ganeshagrawal.com  
Read the article

-   [#reactjs](https://hashnode.com/tag/reactjs)
-   [#javascript](https://hashnode.com/tag/javascript)
-   [#ssl](https://hashnode.com/tag/ssl)
-   [#https](https://hashnode.com/tag/https)
-   [#web-development](https://hashnode.com/tag/web-development)

## Written by

[Ganesh Agrawal](https://hashnode.com/@ganeshagrawal)

@ganeshagrawal · Jaipur, IN

  
[View profile](https://hashnode.com/@ganeshagrawal)

An enthusiastic programmer

I am Ganesh Agrawal a software developer who currently works as Freelancer. I'm passionate about sharing and acquiring knowledge, documentation, OpenSource projects, and communities. If you love to share something then just drop a mail at hello@ganeshagrawal.com.

## Responses 3

Markdown supported · ⌘↵ to post

[Tapas Adhikary](https://hashnode.com/@atapas)

[Aug 1, 2020](https://hashnode.com/posts/how-to-setup-https-locally-with-create-react-app/5f241c49eab86e5020c37241/comment/5f24f88490ac4260edf34c65)

[Ganesh Agrawal](https://hashnode.com/@ganeshagrawal), This is great. Learnt something new.. Bookmarked and shared with few friends..

[Ganesh Agrawal](https://hashnode.com/@ganeshagrawal)

[Aug 2, 2020](https://hashnode.com/posts/how-to-setup-https-locally-with-create-react-app/5f241c49eab86e5020c37241/comment/5f24f88490ac4260edf34c65#reply-5f26cf699d473a7444cebad6)

Thanks for your comment. It will going to motivate me for share more ☺️

[Sandeep Panda](https://hashnode.com/@sandeep)

[Aug 1, 2020](https://hashnode.com/posts/how-to-setup-https-locally-with-create-react-app/5f241c49eab86e5020c37241/comment/5f24f720669da9610ee174be)

Mkcert is awesome. Have been using it for quite some time. Nice tip!

[Ganesh Agrawal](https://hashnode.com/@ganeshagrawal)

[Aug 2, 2020](https://hashnode.com/posts/how-to-setup-https-locally-with-create-react-app/5f241c49eab86e5020c37241/comment/5f24f720669da9610ee174be#reply-5f26d0269d473a7444cebae3)

Yes, that is awesome. But i am trying to figure out how i can use it to universally & bind certificate with my localhost 🔒🌐

[Bolaji Ayodeji](https://hashnode.com/@bolajiayodeji)

[Aug 1, 2020](https://hashnode.com/posts/how-to-setup-https-locally-with-create-react-app/5f241c49eab86e5020c37241/comment/5f24f62090ac4260edf34c3c)

Thanks for sharing this amazing article.
