Monday, March 3, 2014

android bks certificate read error


Currently writing an android ssl-way communication, so the need to produce a certificate on android, this certificate is bks type, so affixed my first steps

keytool-genkey-alias mykey -
dname "CN = yu, OU = syd, O = sunyard, L = hangzhou, ST = zhejiang, C = CN"-keystore ckks.b
ks-storepass sunyard-keypass sunyard-storetype BKS-provider org.bouncycastle
. Jce.provider.BouncyCastleProvider

Generate a certificate type
bksThis certificate is then placed under the raw directory android works, then there
in the programKeyStore kks = KeyStore.getInstance ("BKS");
kks.load (getResources () openRawResource (R.raw.ckks), "sunyard" toCharArray ()..);
This two-step, the question now out
When running load step reported a IOException: Wrong version of key store
This code is not a problem (I use someone else's credentials to run it through)
My guess is bks malformed. . . . . .
Finally, I would like to ask if anyone encountered this problem, there is no good solution. Also, if you want the code can contact qq278593931
<-! Main posts under Banner (D4) -><-! Posts under the main text (D5) ->
Reply:
There is no one to point proposal Yeah
Reply:
Forget yourself to solve the problem of the package is the latest java15on-147 package placed in jdk1.6 reported this error, in other places under a 1.6 package is not being given a
Reply:
I encountered the same problem, can detail about the reasons for it, thank

No comments:

Post a Comment