Implementation of CertStoreProvFindCert
Date: 27 Dec 2004 02:19:35 -0800
I am working on Certificate Store Provider implementation, but I
have one problem, it is about CertStoreProvFindCert implementation.
Thing that I have noticed, is that IE is opening my certificate store
twice when I am accessing https site. Why this is the case? It would be
nice if someone could explain IE way of handling 2ssl connection.
I have noticed also that if I do not return any certificate when IE
is doing FIND_ANY, and return a real certificate when it is searched by
PUBLIC_MD5 it will not appear in choosing list. Thing is that I need to
load my certificate ONLY when it is needed, so I should not return it
if FIND_ANY (because I do not have it in that moment).
There is also a problem with DLL locking, in all cases DLL detach is
called, but DLL is locked, and could not be removed. Only restart helps
in these situations. Could it be some problem with memory handling?
Thing that I have noticed is that CertStoreProvCloseCallback is never
called during HTTPS communication. Only place when it is called is when
you are looking at certificate stores, and when changing to another,
previous needs to be close. I have meant to put all memory release
commands in Close callback, but can I do it there, or I should do it
Thanks in advance,