nginx中配置wss的websocket报错:PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException
背景笔者最近在项目中使用websocket,通过nginx进行代理,配置如下server{listen443ssl;server_namewww.example.com;sslon;ssl_certificatewww.example.com+5.pem;ssl_certificate_keywww.example.com+5-key.pem;ssl_session_cacheshared:SSL