-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
java.io.IOException: Wrong version of key store. #523
Comments
You need to be more specific. If you want help, you must provide as much detail on what you're doing and what's happening if you want someone to help you figure out what is the problem and why. |
I am also facing this issue. I have crated a self signed certificate with keytool:
And when I try the following code, it thorws an IOException: Wrong version of key store. KeyStore keystore = KeyStore.getInstance(KeyStore.getDefaultType());
InputStream keystoreStream = MainActivity.getContext().getAssets().open("keystore.jks");
keystore.load(keystoreStream, "password".toCharArray()); |
Files generated from documents to support https, and log error Wrong version of key store.
this is my code . |
Have you solve this problem? |
It only supports the BKS-V1 Keystore. You can use a tool like KeyStore Explorer to change the type of KeyStore to BKS-V1. |
When I try to set Https for it .
The text was updated successfully, but these errors were encountered: