[xmlsec] problems by xmlSecKeysMngrFindKey
Jürgen Heiss
jheiss at Mesonic.com
Tue Oct 10 02:46:10 PDT 2006
Hi Wouter,
Yes I use this three Init Functions.
I don't get any error, "just" the result is always NULL.
The parm (name) in the FindKey Function is the friendly name of the cert, or should it be something else.
_____
From: Wouter Ketting [mailto:wsh333 at gmail.com]
Sent: Dienstag, 10. Oktober 2006 11:38
To: Jürgen Heiss
Cc: xmlsec at aleksey.com
Subject: Re: [xmlsec] problems by xmlSecKeysMngrFindKey
As far as I know it is the same mechanism as used internally... Did you initialize xmlsec lib properly (probably a redundant question, but you never know):
xmlSecInit();
xmlSecCryptoAppInit(NULL);
xmlSecCryptoInit();
Also, do you get any error messages anywhere? Or the key is simply not found?
Wouter
On 10/10/06, Jürgen Heiss < jheiss at mesonic.com <mailto:jheiss at mesonic.com> > wrote:
I forgot to tell that I'm using mscrypto.
_____
From: xmlsec-bounces at aleksey.com [mailto:xmlsec-bounces at aleksey.com] On Behalf Of Jürgen Heiss
Sent: Dienstag, 10. Oktober 2006 11:06
To: xmlsec at aleksey.com
Subject: [xmlsec] problems by xmlSecKeysMngrFindKey
I try to Find a Key but it always returns Null.
xmlSecKeysMngrPtr mngr = xmlSecKeysMngrCreate();
xmlSecCryptoAppDefaultKeysMngrInit(mngr);
/* locate and load key you want to use */
xmlSecKeyInfoCtxPtr keyInfoCtx = xmlSecKeyInfoCtxCreate(mngr);
xmlSecKeyPtr key = xmlSecKeysMngrFindKey(mngr, (xmlChar *)"dummy", keyInfoCtx);
I my computer exists a certificate with the name CN=dummy.
any ideas what went wrong?
_______________________________________________
xmlsec mailing list
xmlsec at aleksey.com
http://www.aleksey.com/mailman/listinfo/xmlsec
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.aleksey.com/pipermail/xmlsec/attachments/20061010/8d02be12/attachment-0001.htm
More information about the xmlsec
mailing list