Loading PKCS#12 cert: CertificateParsingException:signed fields invalid
843810Jan 15 2003 — edited Aug 31 2006I'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.