[xmlsec] Duplicated X509Certificate
Marcos Bontempo
marcosbontempo at hotmail.com
Sun Jan 3 13:38:08 PST 2016
Thanks for the answer. I removed the --trusted-pem option, but the signed file stills with two x509Certifcate tags.
> Subject: Re: [xmlsec] Duplicated X509Certificate
> To: marcosbontempo at hotmail.com; xmlsec at aleksey.com
> From: aleksey at aleksey.com
> Date: Sun, 3 Jan 2016 13:19:42 -0800
>
> Remove --trusted-pem ca.crt, you don't need it for signing
>
> Aleksey
>
> On 1/3/16 1:15 PM, Marcos Bontempo wrote:
> > Hello,
> >
> > I'm signing a XML file with this command:
> >
> > xmlsec1 --sign --output signed.xml --pkcs12 ia.p12 --pwd password
> > --trusted-pem ca.crt to-sign.xml
> >
> > And here is my signature info:
> >
> > <Signature xmlns="http://www.w3.org/2000/09/xmldsig#">
> > <SignedInfo>
> > <Canonical tizationMethod
> > Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315" />
> > <SignatureMethod
> > Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1" />
> > <Reference URI="">
> > <Transforms>
> > <Transform
> > Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature" />
> > <Transform
> > Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315" />
> > </Transforms>
> > <DigestMethod
> > Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
> > <DigestValue></DigestValue>
> > </Reference>
> > </SignedInfo>
> > <SignatureValue></SignatureValue>
> > <KeyInfo>
> > <X509Data></X509Data>
> > </KeyInfo>
> > </Signature>
> >
> > It's working but I get two X509Certificate tags:
> >
> > <X509Data>
> > <X509Certificate>MIIEBzCCAu+gAwIBAgIJANN+QDNqjUZHMA0GCSqGSIb3DQEBCwUAMIGZMQswCQYD
> > VQQGEwJCUjEVMBMGA1UECAwMTWluYXMgR2VyYWlzMR4wHAYDVQQHDBVTYW50YSBS
> > aXRhIGRvIFNhcHVjYWkxGjAYBgNVBAoMEXd3dy5uaXRlcmUuY29tLmJyMQ8wD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pN1klRseJSkcCe0JsUspai9/OsVESPQx
> > CdH/o0xmoeysUtVNF3ujX8jD1HaOmsJLSrMnX6EA/wIDAQABMA0GCSqGSIb3DQEB
> > CwUAA4IBAQBG6PyNlC/YmEnfzmjXOKRubUIqaCkf4PO2YS23p+6kVUmKB0w+AbO/
> > mK3m6Aq/BABqcfDwtFY1kCOl1tcRtF3HD5Kwpoq8xveIwnRHyOeBjeSKgPVnRQmI
> > sXWjQ48jl8lFbs+LbEAumIGI4eIfIb0wzhyKRZSFjXjZijDi9LktzuHjNftHxGti
> > THc4dzXpSHKgBFWr6OjQvbCMa+jRIraSWk4fknGF9mCxez7BGAZnQmhfJAnMSYLw
> > KIRWd7JsYMjzt9x/hcQjcRsdyrRXUX29kfuL7ic2CyoitVTjzJSldajf/quxiymx
> > QDSNSCy+B65llKZnoNx5gpeV0Q/ZFzqe</X509Certificate>
> > </X509Data>
> >
> > Does anybody know why it's happening? I'm expecting only one
> > X509Certificate tag.
> >
> > Any tip will be very helpful,
> > Thanks.
> >
> >
> > _______________________________________________
> > 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/20160103/bd8d5073/attachment-0001.html>
More information about the xmlsec
mailing list