crewjam / go-xmlsec

golang bindings for xmlsec
BSD 2-Clause "Simplified" License
26 stars 13 forks source link

Verify, xmlsec1 says 'OK', but go-xmlsec/examples says 'signature is not correct' #13

Open qbengt opened 7 years ago

qbengt commented 7 years ago

Greetings,

Under what circumstances will xmlsec1 and go-xmlsec arrive at different verdicts for verify?

Probably handling go-xmlsec the wrong way, so I need some guidance. Data files: bidt-root.pem.txt test_signature.xml.txt

$ xmlsec1 --verify --trusted-pem bidt-root.pem test_signature.xml OK SignedInfo References (ok/all): 2/2 Manifests References (ok/all): 0/0

$ ./examples -v -k bidt-root.pem < test_signature.xml signature is not correct