如题,生产环境websocket连接失败,前端报错:WebSocket connection to ‘wss://im.tnshow.com:5260/‘ failed:
因为原来是可以用的,排除代码和防火墙安全组的问题。百度一下解决问题方式
location /wss/ { proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; }
仍然没有解决我的问题,查找后台日志:
2021-05-31 17:35:40,989 ERROR o.t.core.ReadCompletionHandler[284]: server:NULL, client:113.89.3.89:6823, javax.net.ssl.SSLException: Received fatal alert: certificate_unknownjava.nio.HeapByteBuffer[pos=7 lim=7 cap=7] javax.net.ssl.SSLException: Received fatal alert: certificate_unknown
javax.net.ssl.SSLException: Received fatal alert:
是因为SSL证书更新,没有同步到这个项目所致。