Skip to Main Content

Java Security

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

PKCS12 keystore and toDerInputStream rejection.

843811Sep 18 2001 — edited Jan 11 2008
Hi all,

I am using Java 1.2.2 with the JSSE 1.0.2 extension installed. I have what I am fairly sure is a PKCS12 keystore generated by an AS400 which I am trying to load - code snippet below:
KeyStore ks = KeyStore.getInstance("PKCS12", "SunJSSE");
ks.load(new FileInputStream(keystoreName), storepass);
I know that the keystore name and password are correct. What's happening is that I am getting the following exception:

Exception caught, details: toDerInputStream rejects tag type 55
java.io.IOException: toDerInputStream rejects tag type 55

I've seen a few previous threads on the forum mention this but no-one has come up with any answers/reasons/workarounds/suggestions. Can anyone help now?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 8 2008
Added on Sep 18 2001
8 comments
36,623 views