Could not parse certificate: java.io.IOException: Empty input X509Certificate
I am getting the error given below when parsing the signature. Anybody has idea why the error is showing? Note that: Using the same certificate I signed my own XML and verified which is working fine. That mean there is no issue with certificate. Client provided signed document not able to validate. Errors: Exception in thread "main" javax.xml.crypto.MarshalException: Cannot create X509Certificate at org.jcp.xml.dsig.internal.dom.DOMX509Data.unmarshalX509Certificate(DOMX509Data.java:225) at org.jcp.xml.dsig.internal.dom.DOMX509Data.<init>(DOMX509Data.java:116) at org.jcp.xml.dsig.internal.dom