简体   繁体   English

通过 boost 验证 android 中的证书失败

[英]Verify certificate in android by boost failed

I know that default path of certificates in android(maybe many devices) is /system/etc/security/cacerts , When I check the folder's contents I found that has * .0 files (too many files).我知道 android(可能很多设备)中证书的默认路径是/system/etc/security/cacerts ,当我检查文件夹的内容时,我发现有 * .0文件(文件太多)。

1- boost can detect this folder by default? 1- boost 默认可以检测到这个文件夹吗? ( set_default_verify_paths ) or I should add_verify_path this folder? ( set_default_verify_paths ) 还是我应该add_verify_path这个文件夹?

2- I used explicit path (by adding path that has mentioned in question 1), but it give me error(exception): 2-我使用了显式路径(通过添加问题1中提到的路径),但它给了我错误(异常):

handshake: certificate verify failed

I found that the problem was in low level of codes...我发现问题出在代码级别低...

Methods on file name hashing was different in android vs openssl! android 与 openssl 中文件名散列的方法不同!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM