Discussion:
programmatically clear ssl state
(too old to reply)
latent_print
2004-03-05 01:26:05 UTC
Permalink
I am going to a web site that requires a client certificate for authentication. The problem is that this certificate is cached and this site needs to be accessed multiple times with different certificates. How can I programmatically clear the ssl state? I know that there is a button in XP that can be clicked to do this, but much of this process is automated and I need a way to do it programmatically. Does anybody know how the Clear SSL State button works and how to do it programmatically? Even if its clearing some registry settings, that would be fine

Thanks

Larr
Stephen Sulzer
2004-03-05 03:45:51 UTC
Permalink
There is a thread on this newsgroup from last year that discusses this.
Unfortunately, you cannot simulate the Clear SSL State button
programmatically, short of unloading and reloading WinInet.dll (which you
can only do if your component is the only one in the process using WinInet).

http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&c2coff=1&th=4926500fd4daec6f&rnum=1


Stephen
Post by latent_print
I am going to a web site that requires a client certificate for
authentication. The problem is that this certificate is cached and this
site needs to be accessed multiple times with different certificates. How
can I programmatically clear the ssl state? I know that there is a button
in XP that can be clicked to do this, but much of this process is automated
and I need a way to do it programmatically. Does anybody know how the Clear
SSL State button works and how to do it programmatically? Even if its
clearing some registry settings, that would be fine.
Post by latent_print
Thanks,
Larry
Jason Johnson
2004-03-05 21:32:21 UTC
Permalink
In my app, after my HTTPSendRequest I check for error 12044 for which I use
InternetErrorDialog to ask for the Client Certificazte. For your app, if
they need to be asked each time, instead of checking for an error after the
SendRequest, just do the ErrorDialog BEFORE each SendRequest to force the
certificate selection. I haven't tried this, but its just an idea. Good
Luck.
Post by latent_print
I am going to a web site that requires a client certificate for
authentication. The problem is that this certificate is cached and this
site needs to be accessed multiple times with different certificates. How
can I programmatically clear the ssl state? I know that there is a button
in XP that can be clicked to do this, but much of this process is automated
and I need a way to do it programmatically. Does anybody know how the Clear
SSL State button works and how to do it programmatically? Even if its
clearing some registry settings, that would be fine.
Post by latent_print
Thanks,
Larry
Continue reading on narkive:
Search results for 'programmatically clear ssl state' (Questions and Answers)
5
replies
can i get question answer of asp.net ?
started 2006-10-11 00:02:47 UTC
software
Loading...