Re: Problem opening pkcs12 files using IBM's JRE 1.5.0 on Windows
Don Brady <dbrady-d0/1ywxyuRNWk0Htik3J/[email protected]>
| Newsgroups | gmane.org.user-groups.trijug.juglist |
|---|---|
| Message-ID | <[email protected]> |
At 12:13 PM 2/23/2006, Andi Mullaraj wrote:
>Hi all,
>
>does anybody have an idea why this (trivial) piece of code
>
>public static void main(String[] args) throws Exception {
> java.security.KeyStore keyStore =
> java.security.KeyStore.getInstance("pkcs12");
> java.io.InputStream is = new java.io.FileInputStream("\\test2048.pfx");
> keyStore.load(is, "test".toCharArray());
>}
>
>will throw the exception "java.io.IOException: Private key decryption
>error: (java.security.InvalidKeyException: Illegal key size)"?
>
>**This will work fine with all Sun's JREs and also with IBM's JRE 1.4.**
>
>The key is RSA 2048 bit (attached) but the exception occurs when using
>smaller keys as well.
>
>
Have you looked at
http://www-1.ibm.com/support/docview.wss?uid=swg21169931
You can also post the problem here and it looks as if they are answering
Java 5 issues promptly...
http://www-128.ibm.com/developerworks/forums/dw_forum.jsp?forum=367&cat=10
Don