You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is unexpected because I would expect *sigtypes.Signature to stand-in for the Signature when nested inside the object. It should look like the following (which matches the spec I'm following).
FWIW I've tried to hack in support for moving ds:Signature after signing, but that seems to fail with my validator (3rd party). I understand that manipulating the XML would invalidate the signature, but was hoping it would work. The goxmlsig library will validate the document with ds:Signature appended on the end, but that fails the spec I'm following.
The text was updated successfully, but these errors were encountered:
I am using
github.com/russellhaering/goxmldsig v1.2.0
I have the following Go structs that represent a document being signed, however the signature is nested inside of the header (AppHdr) struct.
We have the following code to sign the document.
This generates the following xml:
This is unexpected because I would expect
*sigtypes.Signature
to stand-in for the Signature when nested inside the object. It should look like the following (which matches the spec I'm following).FWIW I've tried to hack in support for moving
ds:Signature
after signing, but that seems to fail with my validator (3rd party). I understand that manipulating the XML would invalidate the signature, but was hoping it would work. The goxmlsig library will validate the document withds:Signature
appended on the end, but that fails the spec I'm following.The text was updated successfully, but these errors were encountered: