gruntjs / grunt-contrib-connect

Start a static web server.
http://gruntjs.com
MIT License
714 stars 146 forks source link

Default SSL certificate are missing a common name #193

Open oliamb opened 9 years ago

oliamb commented 9 years ago

When using https protocol option, a default self-signed certificate is provided.

This certificate is missing a common name so Chrome don't trust it even if we follow the procedure in the README.

I would suggest to use localhost as common name in the default SSL certificate. What do you think?

spadgett commented 8 years ago

I've been seeing this problem as well.

NET::ERR_CERT_COMMON_NAME_INVALID

This server could not prove that it is localhost; its security certificate is from 0.0.0.0. This may be caused by a misconfiguration or an attacker intercepting your connection.

Following the instructions in the note here did not help:

https://github.com/gruntjs/grunt-contrib-connect#support-for-https--http2

I had to create my own certificates for localhost.

XhmikosR commented 5 years ago

PRs welcome to fix this.