Error:
1. The error prompt for SSL certificate rejection is different between Firefox and chrome
(1) Chrome error: websocket connection failed: error in connection establishment: Net:: err_ CERT_ AUTHORITY_ INVALID
(2) an error is reported in Firefox: it is unable to create a wss://www.wss.com/ Connection to the server.
2. Although the error prompts for SSL certificate rejection are different between Firefox and chrome, the solution steps are exactly the same.
code:
1 var ws = new WebSocket("wss://www.wss.com");
Cause of the problem:
Because the certificate is self signed, the CA of the certificate must not exist in the root storage area of the operating system. Naturally, the operating system will not recognize you, and the natural browser will not recognize you, that is, the self signed certificate is not trusted.
Solution:
1. Open a new tab page in Firefox or chrome.
2. Visit your websocket server domain name: https://www.wss.com (change the WSS request to an HTTPS request with the same domain name and port number).
3. You will find the browser alarm: “your connection is not private connection…”.
Don’t panic, look down and click “advanced”.
5. Continue to click “continue to” www.wss.com (unsafe) “.
6. The page will prompt “400 bad request…”, don’t worry. This is due to using HTTP protocol to access WSS service. Don’t worry. You can solve the prompt error here.
Reprinted from: http://www.blogdaren.com/post-2456.html?from=singlemessage
Reproduced in: https://www.cnblogs.com/XuYuFan/p/10917909.html
Read More:
- Vscode remote connection server reports an error: could not establish connection to “XXXXXX” [resolved]
- Connection error:Cannot connect to redis-server. Details are available in connection log.
- How to Fix adb_server_notify: ADB server connection failed
- About Using SSH connection for Linux server
- Java 11.0.11 SQL Server connection error
- Solution of server connection reused (test environment)
- Navicat remote connection SQL Server 2014 express report 08001 error
- Mobaxterm connects to Ubuntu server through SSH network error: software caused connection abort
- [Solved] Springboot Project Error: Mail server connection failed;
- node.js Server MySQL database connection timeout (error: connect etimeout)
- Error: could’t connect to server 127.0.0.1:27017, connection attempt failed
- Vscode configuration connection server docker write code
- [resolved] exception java.net.ConnectException : Error opening socket to server Connection timed out.
- Could not create connection to database server. Attempted reconnect 3 times. Giving
- SSH connection to MAC server shows No route to host solution
- MySQL Workbench: Error Code: 2013. Lost connection to MySQL server during query solution
- SQL server remote computer refused network connection, error: 1225, specific solution steps.
- Remote sshd prompt: server unexpectedly closed network connection
- docker.errors.DockerException: Error while fetching server API version: (‘Connection aborted.‘, File
- Chrome your connection is not a private connection solution