I now tested following key formats:

* JKS:
  not supported, exception.msg = "KeyStore JKS Implementaion not
found", after calling: KeyStore.getInstance("JKS");
* PKCS12:
  doesn't complain when created (keyStore =
KeyStore.getInstance("PKCS12") works).
  but fails on load-time: "exception decrypting data -
java.security.NuSuchAlgorighmException: SecretKeyFactory
1.2.840.113549.1.12.1.6 implementation not found", after calling
keyStore.load(keyInputStream, pKeyPassword.toCharArray());

So which encription algorithms will I be able to use for ssl/tls keys?
Some thoughts on this?

thanks,
patrick

On Apr 11, 11:32 am, patrick <[EMAIL PROTECTED]> wrote:
> I have the same problem with android m5-rc15.
> Which TLS key formats are supported by the android api?
>
> thanks for answers!
> Patrick
>
> On Mar 23, 6:09 am, "Jonathan Thompson" <[EMAIL PROTECTED]>
> wrote:
>
> > Hi All,
>
> > I am getting an IOException "wrong version of key store" when I run the
> > following code (the load method is the culprit):
>
> > char password[] = "password".toCharArray();
>
> > KeyStore keyStore = KeyStore.getInstance(KeyStore.getDefaultType());
>
> > keyStore.load(graphicalUI.getResources().openRawResource(R.raw.serverkeys),
> > password);
>
> > R.raw.serverkeys refers to the certificate I created using the Java keytool
> > as follows:
>
> > keytool -genkey -keystore serverkeys -keyalg rsa -alias sk
>
> > Enter keystore password:  password
>
> > What is your first and last name?
>
> >   [Unknown]:  first.last.name
>
> > What is the name of your organizational unit?
>
> >   [Unknown]:  Home
>
> > What is the name of your organization?
>
> >   [Unknown]:  Home
>
> > What is the name of your City or Locality?
>
> >   [Unknown]:  Toronto
>
> > What is the name of your State or Province?
>
> >   [Unknown]:  Ontario
>
> > What is the two-letter country code for this unit?
>
> >   [Unknown]:  CA
>
> > Is CN=ultra, OU=Training and Consulting,
>
> > O=javacourses.com, L=Toronto, ST=Ontario, C=CA correct?
>
> >   [no]:  yes
>
> > Enter key password for <sk>
>
> >         (RETURN if same as keystore password):  RETURN
>
> > What is causing this exception to be thrown, is it that I have the wrong
> > KeyStore type?  How do I know what the valid KeyStore types?
>
> > Regards,
>
> > Spoon
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to