Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is Android supported? #8

Open
vi opened this issue Jul 5, 2018 · 6 comments
Open

Is Android supported? #8

vi opened this issue Jul 5, 2018 · 6 comments

Comments

@vi
Copy link

vi commented Jul 5, 2018

I see some Android-looking things in find_cert_dirs, but testing with adb push and adb shell is not fruitful.

@vi
Copy link
Author

vi commented Jul 5, 2018

Is it a good idea to download and cache some cacert.pem if normal probing fails?

For security some fingerprint may be shown to user.

@alexcrichton
Copy link
Owner

Android isn't necessarily specifically supported moreso than other platforms, it's mostly that if the certs are present on android they should be found and if they're not present no action is taken. If paths to search are missing though they can definitely be added!

@vi
Copy link
Author

vi commented Jul 5, 2018

For example, /system/etc/security/cacerts is missing. Although it still fails to work when I SSL_CERT_DIR it.

@alexcrichton
Copy link
Owner

The answer may be no then? This is largely just designed for Cargo to work on tier 1 platforms, but if it needs patches for others they're most welcome!

@timvisee
Copy link
Contributor

timvisee commented Jul 7, 2018

I'm not too familiar with what directory or certificate store file must be found. But, according to this StackOverflow post Android uses a /system/etc/security/cacerts.bks file, which is a Java-specific file.

Therefore I believe more steps are required than just adding its certificate file/directory to the file probing logic would be required on Android. Or would it simply work by setting /system/etc/security as SSL_CERT_DIR with the *.0 files available in there? Sadly I'm not able to test this out at this moment.

@vi
Copy link
Author

vi commented Jul 7, 2018

Maybe there some incomplete set of *.0 files there...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants