jQuery in Action, 3rd edition
The moose likes Security and the fly likes Error While Reading Certificates Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Security
Bookmark "Error While Reading Certificates" Watch "Error While Reading Certificates" New topic

Error While Reading Certificates

Shriram Gopalakrishnan
Ranch Hand

Joined: Feb 20, 2007
Posts: 44
This is the Error while I try to read the Base64 Encoding Certificate. Can anyone help me with this error:

java.security.cert.CertificateException: Unable to initialize, java.io.IOException: insufficient data
at sun.security.x509.X509CertImpl.<init>(X509CertImpl.java:300)
at sun.security.provider.X509Factory.engineGenerateCertificate(X509Factory.java:104)
at java.security.cert.CertificateFactory.generateCertificate(CertificateFactory.java:389)
at CertTest.main(CertTest.java:27)
Caused by: java.io.IOException: insufficient data
at sun.security.util.DerInputBuffer.truncate(DerInputBuffer.java:108)
at sun.security.util.DerValue.<init>(DerValue.java:261)
at sun.security.util.DerInputStream.getDerValue(DerInputStream.java:386)
at sun.security.x509.X509CertImpl.parse(X509CertImpl.java:1658)
at sun.security.x509.X509CertImpl.<init>(X509CertImpl.java:297)
... 3 more
I agree. Here's the link: http://aspose.com/file-tools
subject: Error While Reading Certificates
It's not a secret anymore!