question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Use valid cert for HTTPS in development

See original GitHub issue

Is this a bug report?

No. This is a question (for now) or discussion.

Which terms did you search for in User Guide?

HTTPS

Environment

  1. OS: Windows 10
  2. node -v: 8.4.0
  3. yarn --version: 0.27.5/1.0.0
  4. I haven’t ejected
  5. Browser: Chrome 62

Steps to Reproduce:

  1. Create a project
  2. Run: ‘set HTTPS=true&&yarn start’ (or npm start)
  3. Open https://localhost:3000 in the browser

Expected Behavior

Safe and secure HTTPS connection

Actual Behavior

Error message:

Your connection is not private

image

Main Question:

What I’m doing wrong and how to open secure connection without seeing errors or “unsafe connection warnings”?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
radi-chocommented, Nov 11, 2017

I fixed this in very interesting and tricky way:

  1. First I exported certificate from chrome (view this).
  2. Imported the certificate into Windows (using certmgr.msc).
  3. Allowed chrome://flags/#allow-insecure-localhost flag. - https://goo.gl/VBV6uR

And it works! Thanks to Samet Karaibryamov image

The most interesting is that 1 and 2 can’t fix the security error without 3 and 3 can’t without 1 and 2.

1reaction
gaearoncommented, Jan 8, 2018

Closing as stale.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to use HTTPS for local development - web.dev
If you open your locally running site in your browser using HTTPS, your browser will check the certificate of your local development server....
Read more >
Using HTTPS in Your Development Environment - Auth0
In a production environment, you need a certificate issued by a real Certificate Authority. However, you can be more relaxed in a development...
Read more >
How to Create Your Own SSL Certificate Authority for Local ...
So there you have it, how to become your own local certificate authority to sign your local SSL certificates and use HTTPS on...
Read more >
How to get HTTPS working on your local development ...
Open Keychain Access on your Mac and go to the Certificates category in your System keychain. Once there, import the rootCA.pem using File...
Read more >
HTTPS In Development: A Practical Guide - Marmelab
Why Use HTTPS On a Development Environment? ... How To Generate A Valid Certificate For A Development Environment?
Read more >

github_iconTop Related Medium Post

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found