找回密码
 注册
搜索
查看: 2193|回复: 0

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

[复制链接]
发表于 2022-5-17 16:09:29 | 显示全部楼层 |阅读模式
经过合法证书机构签发的证书,在android中无法通过系统验证,出现以下异常7 @5 `9 P& m. G2 s+ {* I' j
java.security.cert.CertPathValidatorException: Trust anchor for certification path not found.  k) A0 _# j; |' n/ F1 k4 f
1.问题原因:! h  y. p6 ~% `, N4 ~& d1 S
服务器证书链配置错误,缺少中间证书设置。
0 |0 b' `9 ?2 q- ^% [8 Z  W3 t  M2. 解决方案:
8 A) L6 Z- q0 q! X" ]服务器修改证书链配置4 A: I$ V7 ]; d0 I$ m
3. 可以通过openssl 测试证书脸是否配置正确
$ S8 n/ m- Q8 A下面是支付宝的证书链,通常错误的证书链只包含你服务器自己的证书。
$ [" Y7 ]$ [+ f" o) Vopenssl s_client -debug -connect www.alipay.com:443
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-8-14 01:01 , Processed in 0.018850 second(s), 15 queries .

Powered by Discuz! X3.5

© 2001-2025 Discuz! Team.

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