Verify Sign Issue

Renato Fermi <[email protected]>
Newsgroups gmane.text.xml.xmlsec
Message-ID <CAB_QqmXYgWLVt8SapD1oRa1hNorbOBQ2qe+JmjTvQ3Hi6Z14Kw@mail.gmail.com>
Hello Aleksey,

I'm having troubles after sucessfully signing a XML, when verifying it.

What I've done:
 - Signed XML with my cert key and cacert :
 $ xmlsec1 --sign --id-attr:Id infNFe --privkey-pem nfcek.pem,cacert.pem
--output signed.xml input.xml
 - Verified the signature:
xmlsec1 --verify --id-attr:Id infNFe --privkey-pem nfcek.pem,cacert.pem
signed.xml

And received the return:
func=xmlSecOpenSSLEvpSignatureVerify:file=signatures.c:line=493:obj=rsa-sha1:subj=EVP_VerifyFinal:error=18:data
do not match:signature do not match
FAIL
SignedInfo References (ok/all): 1/1
Manifests References (ok/all): 0/0
Error: failed to verify file "signed.xml"

Am I doing anything wrong?

Thanks in advance.

Renato Fermi

_______________________________________________
xmlsec mailing list
[email protected]
http://www.aleksey.com/mailman/listinfo/xmlsec
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.