Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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).

1- boost can detect this folder by default? (set_default_verify_paths) or I should add_verify_path this folder?

2- I used explicit path (by adding path that has mentioned in question 1) , but it give me error(exception):

handshake: certificate verify failed

like image 344
H.M Avatar asked Oct 16 '25 23:10

H.M


1 Answers

I found that the problem was in low level of codes ...

Methods on file name hashing was different in android vs openssl!

like image 53
H.M Avatar answered Oct 18 '25 15:10

H.M



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!