Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Web Services / January 2006

Tip: Looking for answers? Try searching our database.

Programatically close ssl session

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Antonio Dias - 28 Jan 2006 00:31 GMT
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

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.