FiloSottile / mkcert

A simple zero-config tool to make locally trusted development certificates with any names you'd like.
https://mkcert.dev
BSD 3-Clause "New" or "Revised" License
48.79k stars 2.52k forks source link

Google chrome returns ERR_CONNECTION_REFUSED #470

Open Ostefanini opened 2 years ago

Ostefanini commented 2 years ago

Environment

What you did

mkcert -install mkcert {$domainName}

What went wrong

Works well on firefox & safari but not on chrome when accessing my react app on $domainName:3000 using command line:

HTTPS=true DISABLE_ESLINT_PLUGIN=true SSL_CRT_FILE=~/Documents/$domainName.pem SSL_KEY_FILE=~/Documents/$domainName-key.pem npm run start

Ostefanini commented 2 years ago

I've been able to make my app work on chrome when disableing wifi on my laptop. It looks like chrome is trying to resolve from internet (and fails) before resolving from my localhost.

chanced commented 2 years ago

Check the DNS provider in Chrome.If it is set to something other than "Use your current service provider" then switch it to that and see if it works.