[xmlsec] Using xmlsec-examples (Win32 applications, based on sign1..c, sign2.c and encrypt1.c etc)

Maxim Kozlov yossarian22 at yandex.ru
Mon Apr 30 13:33:36 PDT 2007


Hello, Aleksey!
Thanks for the answer, but the fact is that i use only files&keys from archive "xmlsec1- .2.10.tar.gz" ( ..\xmlsec1-1.2.10\examples)=> encrypt3-doc.xml & rsakey.pem.
For example, win32-app Enc3.exe (based on encrypt3.c) error log is:

...\Visual Studio 2005\Projects\Enc1\debug>Enc3.exe encrypt3-doc.xml rsakey.pem
func=:file=..\src\transforms.c:line=1072:obj=unknown:subj=dataSize > 0:error=100:assertion:
func=:file=..\src\xmlenc.c:line=669:obj=unknown:subj=xmlSecTransformCtxBinaryExecute:error=1:xmlsec library function failed:
func=:file=..\src\keys.c:line=1364:obj=unknown:subj=xmlSecKeysMngrFindKey:error=1:xmlsec library function failed:
func=:file=..\src\xmlenc.c:line=885:obj=unknown:subj=unknown:error=45:key is not found:
func=:file=..\src\xmlenc.c:line=375:obj=unknown:subj=xmlSecEncCtxEncDataNodeRead:error=1:xmlsec library function failed:
Error: encryption failed

What's wrong?
Any help greatly appreciated
-- 

Best regards,
Maksim. 


More information about the xmlsec mailing list