I get an error on this line:
final KeyStore keyStore = KeyStore.getInstance("BKS");
the error i get is:
java.security.KeyStoreException: BKS not found at java.security.KeyStore.getInstance(Unknown Source) at AppListen.<init>(AppListen.java:84)
I added bcprov-jdk16-146.jar to the "Linked Libraries" but still no luck.
My general program allows you to use an Android phone as a mouse and keyboard for a computer that uses an SSL socket connection. The Android application has the same line without errors.
What am I doing wrong?
EDIT:
Perhaps this is well known to most, but it was not for me, so for those like me, this is what I did.
The reason I used BKS was that this is the only format allowed by android, but I did not know that you only need it on the Android side, you can use a different format on the server, and then make a copy of the key and convert it in BKS for use on android, eliminating the need for a BouncyCastle.
I used the JKS key for the server and converted a copy of this key to BKS for use on android using a program called portecle.
Mike alike
source share