Re: Problem opening pkcs12 files using IBM's JRE 1.5.0 on Windows

Thomas L Roche <tlroche-r/[email protected]>
Newsgroups gmane.org.user-groups.trijug.juglist
Message-ID <OF37B1B43D.FBF00A43-ON8725711E.00681D8A-8525711E.006888A3@us.ibm.com>
Andi Mullaraj 02/23/2006 12:13:48 PM:
> 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.**

I don't know the answer, but I notice that the folks who maintain the
IBM Java Information Manager say

http://w3.hursley.ibm.com/java/comms/comments.html
>> Service & Support: Adrian Loram <[email protected]>

who hopefully can answer your question, or refer you to someone who
can. (Note that as a non-IBMer you won't be able to view any
URL.beginsWith("w3").)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.