Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ERR_SSL_PROTOCOL_ERROR in Chrome #18

Closed
bknill opened this issue Aug 17, 2019 · 2 comments
Closed

ERR_SSL_PROTOCOL_ERROR in Chrome #18

bknill opened this issue Aug 17, 2019 · 2 comments

Comments

@bknill
Copy link

bknill commented Aug 17, 2019

This appears to be running normally in an Electron app.

Node - 12.2.0
Electron - 5.0.6

Loading https://localhost:8000 shows:

This site can’t provide a secure connection
localhost sent an invalid response.
ERR_SSL_PROTOCOL_ERROR

Is there any way to debug this?

@daquinoaldo
Copy link
Owner

Hi @bknill,
which OS and which Chrome version are you using?

I use Chrome as default browser and I never experimented this issue, so I suppose is related to an error occurred during the execution of the install script. Let's try to debug together! :)

It seems that the certificate has been generated (the script prints Server running on port 443.) but has not been signed as trusted.

Try to remove the config folder and run again https-localhost (try just sudo serve). This will force the script to generate a new certificate and install it. If asks for password is your sudo password; it's needed to trust the certificate. On MacOS and Windows it may ask you to allow the operation with a graphic prompt.
Here you can find the path of the config folder:

// Linux
/home/<username>/.config/https-localhost

// Mac OS
/Users/<username>/Library/Application\ Support/https-localhost

// Windows
C:\Users\<username>\AppData\Roaming\https-localhost

@daquinoaldo
Copy link
Owner

@bknill try this:

sudo apt install libnss3-tools
sudo rm ~/.config/https-localhost
sudo serve

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants