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!

Loading PKCS#12 cert: CertificateParsingException:signed fields invalid

843810Jan 15 2003 — edited Aug 31 2006
I'm trying to create a X509Certificate instance by loading a PKCS#12 (.p12) certificate from file. However, I keep getting the following exception:

java.security.cert.CertificateParsingException: signed fields invalid
at sun.security.x509.X509CertImpl.parse(X509CertImpl.java:1577)...

From the error message I thought it might have something to with the chain of trust so I added the trusted CA's into JAVA_HOME\jre\lib\security\cacerts. Unfortunately, that didn't help and now I'm lost. I didn't run into this problem with DER-encoded certificates, even a self-signed one.

Thanks.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 28 2006
Added on Jan 15 2003
6 comments
2,444 views