I’m working on XML Digital Signature in InterSystems IRIS using %XML.Security.Signature
I start with an XML document that is created by parsing an input XML string, and I want to digitally sign this document using an X509 certificate.
Set##class%SYS.XDuring signing, I got the below error:
Canonicalize error: Signature not foundFrom debugging, it appears that the signing process attempts to locate a <Signature> element in the XML document by its Id, but no such element exists at that point.
This leads to my main question:
Is it expected that XML doc already contains a <Signature>