[xmlsec] command-line question
Aleksey Sanin
aleksey at aleksey.com
Tue May 27 09:40:24 PDT 2003
Seems like you have a problem in the file:
<EncryptedKey>
<ds:KeyInfo>
...
</ds:KeyInfo>
<EncryptionMethod />
...
</EncryptedKey>
when it should be ([1])
<EncryptedKey>
<EncryptionMethod />
<ds:KeyInfo>
...
</ds:KeyInfo>
...
</EncryptedKey>
I have attached a correct file with <EncryptionMethod/> moved two lines
up :) Works for me now :)
> [aleksey at lsh rich]$ xmlsec1 decrypt --privkey:Alice alice.pem
> --privkey:name:Alice alice.pem sample-128.out
> <?xml version="1.0" encoding="UTF-8"?>
> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
> version="1.0">
> <xsl:output encoding="utf-8"/>
> .....
>
With best regards,
Aleksey
[1] http://www.w3.org/TR/xmlenc-core/#sec-Overview
Rich Salz wrote:
> What would be the right command-line to decrypt the attached file?
> The following doesn't work -- xmlsec
> xmlsec1 decrypt \
> --privkey:Alice alice.pem \
> --privkey:name:Alice alice.pem \
> /tmp/sample-128.out
> We get the following traceback:
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sample-128.out
Type: text/xml
Size: 1554 bytes
Desc: not available
Url : http://www.aleksey.com/pipermail/xmlsec/attachments/20030527/7b864b4e/sample-128.xml
More information about the xmlsec
mailing list