Hi all,
I'm hoping someone can help me with this question:
I'm building a winforms .net application which is going to use a web
service with https. I have a certificate protected in a biometric
smart-card and the firt time i call the web-service i have to use my
fingertip to release the private key to establiss the ssl session. The
next requests to the web service do not ask for my fingertip again which
is ok, the ssl session is already established.
What i would like to do is when i call a "logoff" method in my application
i would like to close the ssl session so that the next request would
create a new ssl session and ask for my fingertip again ( login to the
smart-card ).
With this i would like to simulate a login/logoff "procedure" to the web
service.
My problem is that i can only simulate this if i close the application. Is
there any way i can force a ssl session to close so that the next request
asks for my private key again?
Thank u very much!
Antonio Dias

Signature
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
Rodrigo García - 30 Jan 2006 09:36 GMT
Hi.
I don't know how to close programatically de connection, maybe if you try
with the ServicePoint class...
But if you want to stablish a new SSL Session (i.e. make a new SSL
Handshake), you just have to change the ConnectionGroupName property of your
WebService proxy (e.g. ConnectionGroupName=DateTime.Now.Ticks.ToString()).
After the change a new SSL Handshake will be performed, I don't know if that
will solve your problem, if it does please let me know.
> Hi all,
>
[quoted text clipped - 18 lines]
> Thank u very much!
> Antonio Dias
Rodrigo García - 31 Jan 2006 08:23 GMT
I forgot to mention that in .NET 2.0 you can close a ConnectionGroup.
> Hi.
>
[quoted text clipped - 29 lines]
> > Thank u very much!
> > Antonio Dias