mkcert icon indicating copy to clipboard operation
mkcert copied to clipboard

Google chrome returns ERR_CONNECTION_REFUSED

Open Ostefanini opened this issue 3 years ago • 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

Ostefanini avatar Sep 27 '22 15:09 Ostefanini

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.

Ostefanini avatar Sep 27 '22 15:09 Ostefanini

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.

chanced avatar Oct 11 '22 18:10 chanced