微信小游戏 wss Android 6 及一下 访问 trustanchor for certification path not found

先吐槽一下,

泥煤微信小程序,坑爹啊,这个坑真大 ,

说明:

再微信小游戏发布的时候需要配置 https 和 wss,

由于不允许配置端口,并且需要用认证了的证书,所以就只有用域名转发的方式来指向服务器的端口上。

配置好了之后,高高兴兴的上线了。

然后发现一群玩家不能登录游戏,

查日志,翻百度,一天,

https://myssl.com/ssl.html?domain=ttjhdc.gmmaker.cn&port=443&c=0

发现 我们生成的证书 缺少中间证书,

然后去阿里云上申请免费证书,原本以为需要几天,结果几分钟就可以了,

下载 nginx 相关证书,根据说明配置到我 转发的域名 service 上,

配置教程 https://help.aliyun.com/video_detail/54216.html?spm=5176.2020520163.cas.49.4a9e2b7a7IxZNE

然后 测试,无法登陆,查日志

trustanchor for certification path not found

又是翻百度,翻论坛,

然后在 https://developers.weixin.qq.com/community/develop/doc/a898c660d136a7e72cc50b9c6382b37f

提到了,服务器有多个证书 设置默认返回的证书的是websocket的那个

想了半天,没想通怎么添加,

放弃的时候灵光一闪,找到了配置

微信小游戏 wss Android 6 及一下 访问 trustanchor for certification path not found

微信小游戏 wss Android 6 及一下 访问 trustanchor for certification path not found

这二个地方的证书要保持一致。

然后就能访问了。

感谢  微信小游戏 wss Android 6 及一下 访问 trustanchor for certification path not found 太阳 大神的回答.

继续 摸坑,踩坑,脱坑,。