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

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

[复制链接]
发表于 2022-5-17 16:09:29 | 显示全部楼层 |阅读模式
经过合法证书机构签发的证书,在android中无法通过系统验证,出现以下异常
* @$ x- y# g9 K9 m; s- W1 Djava.security.cert.CertPathValidatorException: Trust anchor for certification path not found.
, `( g4 n1 c: [6 `1.问题原因:9 Z1 i" ~  ?3 Q) a2 b/ M  B
服务器证书链配置错误,缺少中间证书设置。
( w  ?5 L+ P- ?2. 解决方案:+ A6 ]( ^8 r7 x3 z8 R
服务器修改证书链配置! P4 O' c" _9 D
3. 可以通过openssl 测试证书脸是否配置正确% |" J5 w" A2 `( L
下面是支付宝的证书链,通常错误的证书链只包含你服务器自己的证书。+ x- D1 s1 ~7 B. j" w) t" I
openssl s_client -debug -connect www.alipay.com:443
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-5-2 10:47 , Processed in 0.019095 second(s), 15 queries .

Powered by Discuz! X3.5

© 2001-2025 Discuz! Team.

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