AnsweredAssumed Answered

Android - KeyStore jks implementation not found?

Question asked by Ali on Mar 14, 2017

I am getting this error during establishing secure XMPP TCP connection to openfire in Android 6.0

"KeyStore jks implementation not found"

 

I found that android Bouncy Castle implementation doesn't support "JKS" KeyStore type but it support "BKS" or "PKCS12"

 

So now I have another issue after choosing any of "BKS/PKCS12" which

These KeyStore type doesn't have implementation of "SunX509" Algorithm needed in the following line in XMPPTCPConnection.java

KeyManagerFactory kmf = KeyManagerFactory.getInstance("SunX509");

Smack/XMPPTCPConnection.java at master · igniterealtime/Smack · GitHub

 

Should we use "X509" rather "SunX509" because Android doesn't have Sun implementation

 

Thanks,

Ali

Outcomes