Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Secured WebSocket does not work in Chrome58

I have upgraded my Chrome to 58 and found the secured WebSocket isn't working any more, the console shows (WebSocket connection to 'wss://127.0.0.1:1234/' failed: Error in connection establishment: net::ERR_INSECURE_RESPONSE), I know Google has deprecated the SHA1 certificate, so created a new self-signed certificate with SHA256, but it still doesn't work, so is the self-signed cert not allowed in this scenario? (I'm using "new WebSocket("wss://127.0.0.1:1234")")

like image 940
Edgar Avatar asked Mar 10 '23 12:03

Edgar


1 Answers

It turns out that the certificate should have a subjectAltName with "IP = 127.0.0.1" for my cert to work in Chrome58, not sure if it's a Chrome bug or new requirement

like image 57
Edgar Avatar answered Mar 19 '23 03:03

Edgar