[xmlsec] decrypt document after encryption failed
Putinei .Ionut
putineiionut at gmail.com
Tue Oct 29 04:08:59 PDT 2013
solved please ignore this message
On Tue, Oct 29, 2013 at 11:54 AM, Putinei .Ionut <putineiionut at gmail.com>wrote:
> Hello,
>
>
> I have fallowed the tutorial from this page for encrypt and decrypt
> http://users.dcc.uchile.cl/~pcamacho/tutorial/web/xmlsec/xmlsec.html
>
> Also used the keys/certificates provided by this tutorial
>
> Command to encrypt:
> xmlsec encrypt --pubkey-pem keysncerts/pub-userkey.pem --session-key
> des-192 --xml-data doc-plain.xml --output doc-encrypted.xml
> session-key-template.xml
>
>
> Command for decrypt:
> xmlsec1 decrypt --privkey-pem keysncerts/userkey.pem doc=encrypted.xml
> and I get this error :
> Entity: line 2: parser error : internal error
> <Name>John Smith</Name>
> ^
> func=xmlSecReplaceNodeBufferAndReturn:file=xmltree.c:line=573:obj=unknown:subj=xmlParseInNodeContext:error=5:libxml2
> library function failed:Failed to parse content
> func=xmlSecEncCtxDecrypt:file=xmlenc.c:line=648:obj=unknown:subj=xmlSecReplaceNodeBuffer:error=1:xmlsec
> library function failed:node=EncryptedData
>
>
> Thanks ,
> Ionut
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.aleksey.com/pipermail/xmlsec/attachments/20131029/c1a3a12b/attachment.html>
More information about the xmlsec
mailing list