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

FileNotFoundException: /system/etc/security/cacerts.bks in ICS #1

Closed
tomwhipple opened this issue Feb 15, 2012 · 1 comment
Closed

Comments

@tomwhipple
Copy link

It seems that Android 4.0.3 uses a different system trust store. As a result, code that works on 2.x fails on 4.0.

root@android:/ # ls /system/etc/security
cacerts
otacerts.zip

root@android:/ # ls /system/etc/security/cacerts
00673b5b.0
03e16f6c.0
08aef7bb.0
...

02-15 13:31:54.437: E/AndroidRuntime(824): java.lang.AssertionError: java.io.FileNotFoundException: /system/etc/security/cacerts.bks: open failed: ENOENT (No such file or directory)
02-15 13:31:54.437: E/AndroidRuntime(824): at org.thoughtcrime.ssl.pinning.PinningTrustManager$SystemKeyStore.getTrustStore(PinningTrustManager.java:246)
02-15 13:31:54.437: E/AndroidRuntime(824): at org.thoughtcrime.ssl.pinning.PinningTrustManager$SystemKeyStore.getPkixParameters(PinningTrustManager.java:209)
02-15 13:31:54.437: E/AndroidRuntime(824): at org.thoughtcrime.ssl.pinning.PinningTrustManager$SystemKeyStore.(PinningTrustManager.java:185)
02-15 13:31:54.437: E/AndroidRuntime(824): at org.thoughtcrime.ssl.pinning.PinningTrustManager.(PinningTrustManager.java:102)
...

@tomwhipple
Copy link
Author

See pull request #2 for solution.

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

1 participant