PEM key files are *not* supported by xmlsec-mscrypto library.
Please see readme file in src/mscrypto folder:

   4) The only supported file formats are PKCS#12 and DER certificates
   (http://bugzilla.gnome.org/show_bug.cgi?id=123675).

BTW, using mailing list is a better way to get answers.

Aleksey


Stanley, Jim wrote:

Aleksey --

I'm sorry to bother you with newbie questions, but I'm having trouble
getting the examples to work.  I built sign1.exe (under WinXP) and ran
it, but it doesn't seem to find the private key to sign the template.
Thanks for any pointers to this problem.

        Jim Stanley

The output is:


sign1.exe sign1-tmpl.xml rsakey.pem

func=xmlSecMSCryptoAppKeyLoad:file=..\src\mscrypto\app.c:line=175:obj=un known:su bj=unknown:error=17:invalid format:format=2;last error=0 (0x00000000);last error msg=The operation completed successfully.

Error: failed to load private pem key from "privkey.pem"

My configure.txt file is:


XMLSEC_VERSION_MAJOR=1 XMLSEC_VERSION_MINOR=2 XMLSEC_VERSION_SUBMINOR=6 BASEDIR=.. XMLSEC_SRCDIR=..\src APPS_SRCDIR=..\apps BINDIR=binaries WITH_CRYPTO= mscrypto WITH_DEFAULT_CRYPTO=mscrypto WITH_OPENSSL=0 WITH_OPENSSL_096=0 WITH_NSS=0 WITH_MSCRYPTO=1 WITH_LIBXSLT=1 WITH_ICONV=1 DEBUG=1 STATIC=1 WITH_DL=1 PREFIX=e:\libxml BINPREFIX=$(PREFIX)\bin INCPREFIX=$(PREFIX)\include LIBPREFIX=$(PREFIX)\lib SOPREFIX=$(PREFIX)\lib INCLUDE=$(INCLUDE);e:\libxml\include LIB=$(LIB);e:\libxml\lib

-----Original Message-----
From: Aleksey Sanin [mailto:[EMAIL PROTECTED] Sent: Thursday, September 02, 2004 2:14 PM
To: Stanley, Jim
Cc: [EMAIL PROTECTED]
Subject: Re: [xmlsec] Need help installing/building on win32 platform
(WinXP)


It seems that you have configured LibXML2 with zlib support and it seems
that xmlsec is not linking with zlib library. The quick fix for you is
to manually modify xmlsec win32 Makefile and add "zlib.lib" to the LIBS
variable (line 344 for me).

Longer term, there needs to be some way of passing libxml2 configuration
parameters to depended libraries/applications. Igor, any idea?

Aleksey
_______________________________________________
xmlsec mailing list
[EMAIL PROTECTED]
http://www.aleksey.com/mailman/listinfo/xmlsec

Reply via email to