Skip to content Skip to sidebar Skip to footer

Android : Bks Keystore Throwing Error For Connecting To Https.

I am working on an Android project in which I am trying to connect to an HTTPS endpoint with an Http client. I checked some links and found out that I have to convert the .keystore

Solution 1:

Add this: sslContextFactory.setKeyStoreType("BKS"); org.eclipse.jetty.util.ssl.SslContextFactory uses JKS by default, for the keystoreType.

Solution 2:

I had a similar problem, had to setKeyStoreType("BKS") AND setTrustStoreType("BKS") because I had changed the provider to "BC" which doesn't understand JKS when it tries to default load the default trust store, so watch out for that! Looks like it doesn't solve your problem as your stack trace shows loadKeyStore, mine was failing in the stack trace at loadTrustStore before it even got to loadKeyStore...

Post a Comment for "Android : Bks Keystore Throwing Error For Connecting To Https."