By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,129 Members | 2,300 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,129 IT Pros & Developers. It's quick & easy.

Programatically close ssl session

P: n/a
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
Share this Question
Share on Google+
2 Replies


P: n/a
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

P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.