Signature Failed Core Validation
JWSDP 2.0, JDK 1.6.0_02, migrated code from GenDetached.java and Validate.java into application. Generated XML signature looks good, but validation fails with "signature failed core validation", yet the single [file:] reference validation returns TRUE, i.e., success. How can one diagnose why "core validation" is failing?
Modified GenDetached.java and Validate.java to work around JDK bug when addressing "file:" documents by calling SetBaseURI. Also modified GenDetached.java to read keystore created by keytool and extract cert, public key and private key, using them for signature operation.
When using modified GenDetached to sign specific input document, producing detachedSignature.xml, Validate approves the result.
But when using modified GenDetached that has been inserted into my application, Validate rejects the result.
in XML file is identical for both above cases except for the element. Public key information, algorithm, etc., are all identical.
Have dumped input public and private keys to signing process, and all information appears identical.
Are there any hidden configuration properties that may affect the signing process?
How to diagnose "failed core validation"? Thanks.