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

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

[复制链接]
发表于 2022-5-17 16:09:29 | 显示全部楼层 |阅读模式
经过合法证书机构签发的证书,在android中无法通过系统验证,出现以下异常( S9 ~/ c* i" R" V9 U
java.security.cert.CertPathValidatorException: Trust anchor for certification path not found.4 c. h4 U; s. ?
1.问题原因:
) P2 m9 O9 a1 a2 t/ ]- n服务器证书链配置错误,缺少中间证书设置。
5 n* o' N+ z& {! E# {+ D+ P# {2. 解决方案:+ }% W- ]8 C" _* O, u: u4 r1 \) J
服务器修改证书链配置
! T/ f# d' r( H" w1 p% d. {3. 可以通过openssl 测试证书脸是否配置正确
7 ^' F& t$ K9 R& _6 V( k; C" o3 b7 f3 `7 x下面是支付宝的证书链,通常错误的证书链只包含你服务器自己的证书。
& J5 M# E9 U6 t+ z  }5 jopenssl s_client -debug -connect www.alipay.com:443
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2025-6-18 22:28 , Processed in 0.015304 second(s), 15 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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