[xmlsec] Cygwin+XmlSec

Aleksey Sanin aleksey at aleksey.com
Mon Jun 8 07:31:00 PDT 2009


Please read the error, it explains what needs to be done.

Aleksey

Braja Biswal wrote:
> Can you help?
> 
> After taking the patch
> 
> *xmlsec1-1.2.5.patch.bz2*
> 
> Its giving Error Like
> $ xmlsec1 --encrypt doc-x509.xml
> func=xmlSecCryptoDLLibraryCreate:file=dl.c:line=130:obj=xmlsec_lt_dlopen:subj=unknown:error=7:io 
> function failed:filenam
> e=*cygxmlsec1-openssl-1.dll*
> func=xmlSecCryptoDLGetLibraryFunctions:file=dl.c:line=457:obj=unknown:subj=xmlSecCryptoDLLibraryCreate:error=1:xmlsec 
> li
> brary function failed:crypto=openssl
> func=xmlSecCryptoDLLoadLibrary:file=dl.c:line=408:obj=unknown:subj=xmlSecCryptoDLGetLibraryFunctions:error=1:xmlsec 
> libr
> ary function failed:
> Error: unable to load xmlsec-openssl library. Make sure that you have
> this it installed, check shared libraries path (LD_LIBRARY_PATH)
> envornment variable or use "--crypto" option to specify different
> crypto engine.
> Error: initialization failed
> Usage: xmlsec <command> [<options>] [<file>]
> 
> xmlsec is a command line tool for signing, verifying, encrypting and
> decrypting XML documents. The allowed <command> values are:
>   --help        display this help information and exit
>   --help-all    display help information for all commands/options and exit
>   --help-<cmd>  display help information for command <cmd> and exit
>   --version     print version information and exit
>   --keys        keys XML file manipulation
>   --sign        sign data and output XML document
>   --verify      verify signed document
>   --sign-tmpl   create and sign dynamicaly generated signature template
>   --encrypt     encrypt data and output XML document
>   --decrypt     decrypt data from XML document
> 
> 
> Report bugs to http://www.aleksey.com/xmlsec/bugs.html
> 
> Written by Aleksey Sanin <aleksey at aleksey.com <mailto:aleksey at aleksey.com>>.
> 
> Copyright (C) 2002-2003 Aleksey Sanin.
> This is free software: see the source for copying information.
> 
> func=xmlSecCryptoShutdown:file=app.c:line=69:obj=unknown:subj=cryptoShutdown:error=9:feature 
> is not implemented:
> func=xmlSecAppCryptoShutdown:file=crypto.c:line=48:obj=unknown:subj=xmlSecCryptoShutdown:error=1:xmlsec 
> library function
>  failed:
> Error: xmlsec crypto shutdown failed.*
> ------------------------------------------------------------
> *
> 
> $ xmlsec1 --encrypt knowledge-schema.xml
> func=xmlSecCryptoDLLibraryCreate:file=dl.c:line=130:obj=xmlsec_lt_dlopen:subj=un
> known:error=7:io function failed:filename=libxmlsec1-openssl.dll
> func=xmlSecCryptoDLGetLibraryFunctions:file=dl.c:line=453:obj=unknown:subj=xmlSe
> cCryptoDLLibraryCreate:error=1:xmlsec library function failed:crypto=openssl
> func=xmlSecCryptoDLLoadLibrary:file=dl.c:line=404:obj=unknown:subj=xmlSecCryptoD
> LGetLibraryFunctions:error=1:xmlsec library function failed:
> Error: unable to load xmlsec-openssl library. Make sure that you have
> this it installed, check shared libraries path (LD_LIBRARY_PATH)
> envornment variable or use "--crypto" option to specify different
> crypto engine.
> Error: initialization failed
> 
> The files libxmlsec1-openssl.{a|la} are in /usr/local/lib.
> openssl version 0.9.7d
> xmlsec 1.2.5
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> xmlsec mailing list
> xmlsec at aleksey.com
> http://www.aleksey.com/mailman/listinfo/xmlsec


More information about the xmlsec mailing list