收藏
回答

证书已安装为什么接口还是调用失败?

sh-4.2# /usr/lib/jvm/java-1.8.0-amazon-corretto/jre/bin/keytool -list   -keystore /usr/lib/jvm/java-1.8.0-amazon-corretto/jre/lib/security/cacerts   -storepass changeit | grep weixin_miniapp

weixin_miniapp, Oct 20, 2025, trustedCertEntry, 

WxMaJscode2SessionResult session = wxService.getUserService().getSessionInfo(jsCode);
报错如下:

javax.net.ssl.SSLHandshakeException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

最后一次编辑于  2025-10-20
回答关注问题邀请回答
收藏
登录 后发表内容