473,397 Members | 2,099 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,397 software developers and data experts.

Programatically close ssl session

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

--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
Jan 28 '06 #1
2 3594
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.

"Antonio Dias" wrote:
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

--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/

Jan 30 '06 #2
I forgot to mention that in .NET 2.0 you can close a ConnectionGroup.

"Rodrigo GarcÃ*a" wrote:
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.

"Antonio Dias" wrote:
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

--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/

Jan 31 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: David Busch | last post by:
Does anyone know of a way to fill in a JSP form programatically? Any pointers are greatly appreciated. Dave
9
by: Pack Fan | last post by:
I've noticed that session variables will persist on Mac IE even after all browser windows have been closed. One must quit the program to clear the session variables. This presents a security risk...
0
by: CoreyMas | last post by:
Hello Everyone, I have been successful in creating a template column programatically using the examples provided in VS 2003. However I have not been able to programatically set the width of a...
6
by: Maximus | last post by:
Hi everybody, Has anyone changed the session state in web.config programatically through the applications. Any Help will be appreciated. Thanks.
2
by: Ashish | last post by:
hi all, i am just curious as to how to access the SessionState section in web.config file programatically and then to possibly change it , are there any .net standard classes to do this ? TIA...
0
by: spamfurnace | last post by:
Hi there on this rainy old day, I have some users logging into an asp.net website. The server the site sits on allows users to webmail through a common service/component called Horde. In order...
6
by: Mythran | last post by:
I have 2 projects, a Web project and a Class Library project. In the class project, I have a class called Class1. Pseudo below: Class Class1 ... Public Static Sub Generate() If True '...
4
by: carson | last post by:
I have written two windows services: - service A does some crunching of local data files and uploads them to a central processing computer via http. - service B monitors a manifest file on a...
0
by: meLlamanJefe | last post by:
I have the following code snippet that is used in a simple multi-threaded server program I am testing. The ServerSocket class binds to a port and creates a listening socket. Then it sits and waits...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.