JЭrgen !

I sign correct enveloped template the command:
xmlsec sign  --output output.xml  --privkey-pem rsakey.pem template.xml 
or 
xmlsec sign > output.xml  --privkey-pem rsakey.pem template.xml 


<Envelope >
  <Data>
        Hello, World!
  </Data>
<Signature xmlns="http://www.w3.org/2000/09/xmldsig#";>
<SignedInfo>
<CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/>
<SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1"/>
<Reference>
<Transforms>
<Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature"/>
</Transforms>
<DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/>
<DigestValue/>
</Reference>
</SignedInfo>
<SignatureValue/>
<KeyInfo>
<X509Data>
<X509Certificate/>
<X509SubjectName/>
<X509IssuerSerial/>
</X509Data>
</KeyInfo>
</Signature></Envelope>


_______________________________________________
xmlsec mailing list
xmlsec@aleksey.com
http://www.aleksey.com/mailman/listinfo/xmlsec

Reply via email to