[xmlsec] decrypt document after encryption failed
Aleksey Sanin
aleksey at aleksey.com
Tue Oct 29 09:50:38 PDT 2013
You have an internal XML parser error, no idea "why?".
Aleksey
On 10/29/13, 2:54 AM, Putinei .Ionut 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
>
>
> _______________________________________________
> xmlsec mailing list
> xmlsec at aleksey.com
> http://www.aleksey.com/mailman/listinfo/xmlsec
>
More information about the xmlsec
mailing list