FiloSottile/mkcert

Google chrome returns ERR_CONNECTION_REFUSED

Ostefanini opened this issue · 2 comments

Environment

  • OS: MacOS 12.6
  • mkcert version: 1.4.4
  • Server: localhost
  • Client: Chrome 105.0.5195.125

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

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.

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.