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

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

[复制链接]
发表于 2022-5-17 16:09:29 | 显示全部楼层 |阅读模式
经过合法证书机构签发的证书,在android中无法通过系统验证,出现以下异常
8 @' A* [' S- a* Ejava.security.cert.CertPathValidatorException: Trust anchor for certification path not found.
; G. j/ e) ~! O/ |! O5 o1.问题原因:
# F* {; P0 P/ |服务器证书链配置错误,缺少中间证书设置。
6 Y7 m( f% i# g- L2 @7 u: G2. 解决方案:
1 s6 i2 I9 r/ f- H7 M' V服务器修改证书链配置9 D" W8 S: \) ]+ p( O
3. 可以通过openssl 测试证书脸是否配置正确
& \7 c$ q! s4 k) l/ ~, M6 N: Q下面是支付宝的证书链,通常错误的证书链只包含你服务器自己的证书。7 J. U, n' |; j$ R7 [1 c
openssl s_client -debug -connect www.alipay.com:443
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2025-5-4 17:58 , Processed in 0.013547 second(s), 15 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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