找回密码
 注册
查看: 2257|回复: 0

https 证书校验异常 Trust anchor for certification path not found

[复制链接]
发表于 2022-5-17 16:09:29 | 显示全部楼层 |阅读模式
经过合法证书机构签发的证书,在android中无法通过系统验证,出现以下异常" W1 C$ }  l9 `
java.security.cert.CertPathValidatorException: Trust anchor for certification path not found.7 D, R+ M( F4 A  D$ F& ^
1.问题原因:- R: D/ x7 V5 c/ D1 Y
服务器证书链配置错误,缺少中间证书设置。
% p9 X( e6 m3 q2. 解决方案:- O) [  J3 S5 ^" P% }
服务器修改证书链配置
- H( S' A% T# q: o3. 可以通过openssl 测试证书脸是否配置正确8 C6 ~' q4 u- O
下面是支付宝的证书链,通常错误的证书链只包含你服务器自己的证书。
( F' j2 ~  b% c' mopenssl s_client -debug -connect www.alipay.com:443
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|宁德市腾云网络科技有限公司 ( 闽ICP备2022007940号-5|闽公网安备 35092202000206号 )

GMT+8, 2026-10-1 19:23 , Processed in 0.016476 second(s), 15 queries .

Powered by Discuz! X3.5

© 2001-2026 Discuz! Team.

快速回复 返回顶部 返回列表