all groups > dotnet web services > january 2006 >
You're in the

dotnet web services

group:

Programatically close ssl session


Programatically close ssl session Antonio Dias
1/28/2006 12:31:07 AM
dotnet web services: 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

--
RE: Programatically close ssl session Rodrigo García
1/30/2006 1:36:27 AM
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.



[quoted text, click to view]
RE: Programatically close ssl session Rodrigo García
1/31/2006 12:23:27 AM
I forgot to mention that in .NET 2.0 you can close a ConnectionGroup.

[quoted text, click to view]
AddThis Social Bookmark Button