[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@aleksey.com http://www.aleksey.com/mailman/listinfo/xmlsec
RE: [xmlsec] problems by xmlSecKeysMngrFindKey
I forgot to tell that I'm using mscrypto. From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jürgen HeissSent: Dienstag, 10. Oktober 2006 11:06To: xmlsec@aleksey.comSubject: [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@aleksey.com http://www.aleksey.com/mailman/listinfo/xmlsec
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?WouterOn 10/10/06, Jürgen Heiss < [EMAIL PROTECTED]> wrote: I forgot to tell that I'm using mscrypto. From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Jürgen HeissSent: Dienstag, 10. Oktober 2006 11:06To: xmlsec@aleksey.comSubject: [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 listxmlsec@aleksey.com http://www.aleksey.com/mailman/listinfo/xmlsec ___ xmlsec mailing list xmlsec@aleksey.com http://www.aleksey.com/mailman/listinfo/xmlsec
RE: [xmlsec] problems by xmlSecKeysMngrFindKey
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:[EMAIL PROTECTED] Sent: Dienstag, 10. Oktober 2006 11:38To: Jürgen HeissCc: xmlsec@aleksey.comSubject: 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 < [EMAIL PROTECTED]> wrote: I forgot to tell that I'm using mscrypto. From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Jürgen HeissSent: Dienstag, 10. Oktober 2006 11:06To: xmlsec@aleksey.comSubject: [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 listxmlsec@aleksey.comhttp://www.aleksey.com/mailman/listinfo/xmlsec ___ xmlsec mailing list xmlsec@aleksey.com http://www.aleksey.com/mailman/listinfo/xmlsec
Re: [xmlsec] problems by xmlSecKeysMngrFindKey
Search by friendly name is not (yet) supported. You could try search by full subject DN, or apply the patch posted in http://www.aleksey.com/pipermail/xmlsec/2006/003560.html and see whether you are able to retrieve the certificate by friendly name.WouterOn 10/10/06, Jürgen Heiss < [EMAIL PROTECTED]> wrote: 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:[EMAIL PROTECTED]] Sent: Dienstag, 10. Oktober 2006 11:38To: Jürgen HeissCc: xmlsec@aleksey.comSubject: 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 < [EMAIL PROTECTED]> wrote: I forgot to tell that I'm using mscrypto. From: [EMAIL PROTECTED] [mailto: [EMAIL PROTECTED]] On Behalf Of Jürgen HeissSent: Dienstag, 10. Oktober 2006 11:06To: xmlsec@aleksey.comSubject: [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 listxmlsec@aleksey.com http://www.aleksey.com/mailman/listinfo/xmlsec ___ xmlsec mailing list xmlsec@aleksey.com http://www.aleksey.com/mailman/listinfo/xmlsec
RE: [xmlsec] problems by xmlSecKeysMngrFindKey
Hi, My certificate subject look like this. Serial Number = xx N = Dummy C = AT How should look now the function call? xmlSecKeyPtr key = xmlSecKeysMngrFindKey(mngr, (xmlChar *)"Serival number = xx N = Dummy c = AT ", keyInfoCtx); This down't work! From: Wouter Ketting [mailto:[EMAIL PROTECTED] Sent: Dienstag, 10. Oktober 2006 12:06To: Jürgen HeissCc: xmlsec@aleksey.comSubject: Re: [xmlsec] problems by xmlSecKeysMngrFindKey Search by friendly name is not (yet) supported. You could try search by full subject DN, or apply the patch posted in http://www.aleksey.com/pipermail/xmlsec/2006/003560.html and see whether you are able to retrieve the certificate by friendly name.Wouter On 10/10/06, Jürgen Heiss < [EMAIL PROTECTED]> wrote: 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:[EMAIL PROTECTED]] Sent: Dienstag, 10. Oktober 2006 11:38To: Jürgen HeissCc: xmlsec@aleksey.comSubject: 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 < [EMAIL PROTECTED]> wrote: I forgot to tell that I'm using mscrypto. From: [EMAIL PROTECTED] [mailto: [EMAIL PROTECTED]] On Behalf Of Jürgen HeissSent: Dienstag, 10. Oktober 2006 11:06To: xmlsec@aleksey.comSubject: [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 listxmlsec@aleksey.comhttp://www.aleksey.com/mailman/listinfo/xmlsec ___ xmlsec mailing list xmlsec@aleksey.com http://www.aleksey.com/mailman/listinfo/xmlsec
Re: [xmlsec] problems by xmlSecKeysMngrFindKey
Serial Number is usually SN, Common Name CN, Country C... Check what the certificate looks like in MS certificate store. Wouter Jürgen Heiss wrote: Hi, My certificate subject look like this. Serial Number = xx N = Dummy C = AT How should look now the function call? xmlSecKeyPtr key = xmlSecKeysMngrFindKey(mngr, (xmlChar *)"Serival number = xx N = Dummy c = AT ", keyInfoCtx); This down't work! From: Wouter Ketting [mailto:[EMAIL PROTECTED]] Sent: Dienstag, 10. Oktober 2006 12:06 To: Jürgen Heiss Cc: xmlsec@aleksey.com Subject: Re: [xmlsec] problems by xmlSecKeysMngrFindKey Search by friendly name is not (yet) supported. You could try search by full subject DN, or apply the patch posted in http://www.aleksey.com/pipermail/xmlsec/2006/003560.html and see whether you are able to retrieve the certificate by friendly name. Wouter On 10/10/06, Jürgen Heiss < [EMAIL PROTECTED]> wrote: 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:[EMAIL PROTECTED]] Sent: Dienstag, 10. Oktober 2006 11:38 To: Jürgen Heiss Cc: xmlsec@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 < [EMAIL PROTECTED]> wrote: I forgot to tell that I'm using mscrypto. From: [EMAIL PROTECTED] [mailto: [EMAIL PROTECTED]] On Behalf Of Jürgen Heiss Sent: Dienstag, 10. Oktober 2006 11:06 To: xmlsec@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@aleksey.com http://www.aleksey.com/mailman/listinfo/xmlsec ___ xmlsec mailing list xmlsec@aleksey.com http://www.aleksey.com/mailman/listinfo/xmlsec
[xmlsec] Xmlsec VC Projekt
Hi everbody, Does someone know if there exists an VC Projekt File for the xmlsec Lib? ___ xmlsec mailing list xmlsec@aleksey.com http://www.aleksey.com/mailman/listinfo/xmlsec
Re: [xmlsec] Xmlsec VC Projekt
To the best of my knowledge, no... but xmlsec win32 build generates standard MS makefiles and I believe I've some utilities that can automatically convert MS makefiles into project files. Disclaimer: I actually never tried to do this. Aleksey Jürgen Heiss wrote: Hi everbody, Does someone know if there exists an VC Projekt File for the xmlsec Lib? ___ xmlsec mailing list xmlsec@aleksey.com http://www.aleksey.com/mailman/listinfo/xmlsec ___ xmlsec mailing list xmlsec@aleksey.com http://www.aleksey.com/mailman/listinfo/xmlsec