GoogleChromeLabs / simplehttp2server

A simple HTTP/2 server for development
Other
1.74k stars 98 forks source link

Does not work with latest Chrome #44

Open markus-walther opened 4 years ago

markus-walther commented 4 years ago

Using latest Google Chrome v. 85.0.4183.83 on MacOS Catalina 10.15.6 (19G2021).

Using latest precompiled binary simplehttp2server_darwin_amd64 from 2017.

No config, all default settings.

Redirection http => https does not work: "This site can’t be reached"

https://localhost:5000 does not work: "NET::ERR_CERT_INVALID" and Advanced does not list a way to proceed due to "You cannot visit localhost at the moment because the website sent scrambled credentials that Google Chrome cannot process. "

Log excerpt: $ ./simplehttp2server_darwin_amd64 2020/08/26 17:06:54 Generating certificate... 2020/08/26 17:06:54 written cert.pem 2020/08/26 17:06:54 written key.pem 2020/08/26 17:06:54 Listening on https://localhost:5000... 2020/08/26 17:06:59 http: TLS handshake error from [::1]:63035: remote error: tls: unknown certificate

markus-walther commented 4 years ago

UPDATE: Turns out this problem requires the steps outlined in https://stackoverflow.com/a/60938516 to make it work in Chrome under MacOS Catalina.

This suggests an update to the README.md to point out the problem and its solution.