And this is what I'm trying to do:
c:>encrypt1 encrypt1-tmpl.xml deskey.bin

I have no idea why it does not work for you if you are using
*unmodified* examples files from the xmlsec distribution.

D:\misc\xmlsec\examples>build\encrypt1 encrypt1-tmpl.xml deskey.bin
<?xml version="1.0"?>
<!--
XML Security Library example: Simple encryption template file for encrypt1 examp
le.
-->
<EncryptedData xmlns="http://www.w3.org/2001/04/xmlenc#";>
<EncryptionMethod Algorithm="http://www.w3.org/2001/04/xmlenc#tripledes-cbc";
/>
    <KeyInfo xmlns="http://www.w3.org/2000/09/xmldsig#";>
        <KeyName>deskey.bin</KeyName>
    </KeyInfo>
    <CipherData>
        <CipherValue>0FWXHSWkbr3v7hoJTGj4L0YSuWAlwI4F</CipherValue>
    </CipherData>
</EncryptedData>

D:\misc\xmlsec\examples>build\encrypt2.exe encrypt2-doc.xml deskey.bin
<?xml version="1.0" encoding="UTF-8"?>
<!--
XML Security Library example: Original XML doc file before encryption (encrypt2
example).
-->
<EncryptedData xmlns="http://www.w3.org/2001/04/xmlenc#"; Type="http://www.w3.org
/2001/04/xmlenc#Element">
<EncryptionMethod Algorithm="http://www.w3.org/2001/04/xmlenc#tripledes-cbc"/>
<KeyInfo xmlns="http://www.w3.org/2000/09/xmldsig#";>
<KeyName>deskey.bin</KeyName>
</KeyInfo>
<CipherData>
<CipherValue>ApoTbBtHqHleIvTrNTWTbDN/WwdN8ac/Ak9V8fOTXE/HL0YTH5kX51UYu6dzePK1
XTihcd7sldGLaTYcml/B3egY7DrSk6lfoOBOB2SJY4oer9iY2Qd3xQ==</CipherValue>
</CipherData>
</EncryptedData>

_______________________________________________
xmlsec mailing list
[email protected]
http://www.aleksey.com/mailman/listinfo/xmlsec

Reply via email to