Problem opening pkcs12 files using IBM's JRE 1.5.0 on Windows
"Andi Mullaraj" <andim-pm/[email protected]>
| Newsgroups | gmane.org.user-groups.trijug.juglist |
|---|---|
| Message-ID | <[email protected]> |
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.
Thanks a lot,
Andi Mullaraj
_______________________________________________
Juglist mailing list
[email protected]
http://trijug.org/mailman/listinfo/juglist_trijug.org
test2048.pfx
(application/x-pkcs12, 2.7 KB) - not displayed