How to tell XMLDSIG API to put X.509 certificate in a digital signature
The digital signature generated by XMLDSIG API includes element path Signature, KeyInfo, KeyValue, DSAKeyValue and P, Q, G and Y. I believe the standard allows element X509Data at the same level as KeyValue, but I don't know how to tell XMLDSIG to insert the X.509 certificate that encapsulates the public key into the digital signature at element path Signature, KeyInfo, X509Data. Can it be done? Thanks.
My fundamental intent is to validate the certificate path along with the digital signature, but don't know how to do that with only the public key data. Thanks again.