I've a self signed certificate setup with a different hostname on my server. I get a
WebSocket Error: Network Error 12038, The host name in the certificate is invalid or does not match
on IE.
I tried setting rejectUnauthorized to false but it still gives me the same error.
var wsconnect = socket('https://url', {
transports: ['websocket'],
rejectUnauthorized: false
});
Am I doing this right?
@aravindsrivats using process.env.NODE_TLS_REJECT_UNAUTHORIZED = '0';
does it works?
does this only work on nodejs but not with the client on browser? I can't get it work from browser. Still pop out Error in connection establishment: net::ERR_CERT_AUTHORITY_INVALID
in chrome
Did anyone ever figure this out? Having this problem now.
Most helpful comment
does this only work on nodejs but not with the client on browser? I can't get it work from browser. Still pop out
Error in connection establishment: net::ERR_CERT_AUTHORITY_INVALID
in chrome