[xmlsec] Verify Sign Issue
Renato Fermi
repiazza at gmail.com
Mon Nov 24 10:15:57 PST 2014
I've added 2 files (inuput) 0AU00209.xml and output.xml.
2014-11-24 16:05 GMT-02:00 Aleksey Sanin <aleksey at aleksey.com>:
> How does the input.xml looks like?
>
> Aleksey
>
> On 11/24/14 9:58 AM, Renato Fermi wrote:
> > 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
> > xmlsec at aleksey.com
> > http://www.aleksey.com/mailman/listinfo/xmlsec
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.aleksey.com/pipermail/xmlsec/attachments/20141124/d15bcb3e/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0AU00209.xml
Type: text/xml
Size: 4106 bytes
Desc: not available
URL: <http://www.aleksey.com/pipermail/xmlsec/attachments/20141124/d15bcb3e/attachment.xml>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signed.xml
Type: text/xml
Size: 6833 bytes
Desc: not available
URL: <http://www.aleksey.com/pipermail/xmlsec/attachments/20141124/d15bcb3e/attachment-0001.xml>
More information about the xmlsec
mailing list