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!

What does "CertificateParsingException: signed fields invalid" mean?

843811Apr 13 2009 — edited Apr 15 2009
Hello,

The following code generates a java.security.cert.CertificateParsingException: signed fields invalid exception:
			URL url = new URL("http://hostname/TemporaryKey.pfx");
			InputStream inStream = url.openStream();
			CertificateFactory cf = CertificateFactory.getInstance("X.509");
*exception occurs here==>	X509Certificate cert = (X509Certificate)cf.generateCertificate(inStream);
			inStream.close();
The name for the .pfx file was changed but is valid.

Any suggestions?

Thanks,
williamj
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 13 2009
Added on Apr 13 2009
2 comments
2,604 views