473,503 Members | 1,646 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Selecting SSL Certificates

56 New Member
I wrote a SSL client application. It is communicating fine through SSL, but I noticed that the SSL communication takes anywhere from 15-20 seconds, where tcp is only about 3-5 seconds. Steping through my code I notice that when I am selecting the certificate and returning it, the code pauses for about 7-10 seconds after steping out of that function. Here is the function:

Expand|Select|Wrap|Line Numbers
  1.     Private Function SelectLocalCertificate(ByVal sender As Object, ByVal targetHost As String, ByVal localCertificate As X509CertificateCollection, ByVal remotecertficate As X509Certificate, ByVal acceptableIssuers() As String) As X509Certificate
  2.  
  3.         If ((localCertificate Is Nothing) Or (localCertificate.Count = 0)) Then
  4.             Return Nothing
  5.         End If
  6.  
  7.         Return localCertificate(0)
  8.  
  9.     End Function
  10.  
I'm calling this function when instantiating the SSL stream

Expand|Select|Wrap|Line Numbers
  1. socketStream = New SslStream(socket.GetStream, False, New RemoteCertificateValidationCallback(AddressOf ValidateServerCertificate), New LocalCertificateSelectionCallback(AddressOf SelectLocalCertificate))
  2.  
This is using VS2005 and .NET 3.0. Is this normal, or is there something I can do to speed up the process?
Mar 28 '08 #1
0 876

Sign in to post your reply or Sign up for a free account.

Similar topics

1
1454
by: Next | last post by:
Hello, I sure could use someone's help : ) I need to authenticate users and securely upload files from laptops on the internet ( not on the same domain as server ) to a server on my domain....
0
1606
by: cl | last post by:
I am using the "VeriSign Class 3 Code Signing" certificate for signing my Access program in Office 2003. Up to now, when program was installed on client machine, a form was appearing and user...
0
1555
by: dinoo | last post by:
Can some body help me out? I am trying to use client certificates in a Webservice. But some how i am not able to make it. I went through the msdn resources but i think some one needs to help me...
2
1296
by: Larry David | last post by:
Hi, This is one of those posts where not only do I not know the answer, I don't fully understand the *question* that I should be asking... but I'll try my best: I've designed a web site which...
5
4426
by: | last post by:
Hi all, HttpWebRequest, and SoapHttpClientProtocol both expose a ClientCertificates property, which can hold multiple client certificates, but on the service side, it can only receive one client...
1
1834
by: rds | last post by:
We are developing a smart client application which consumes web services. The web services are being secured with X509 certificates. During the development/testing phase we have been using the X509...
2
5746
by: Rune Nergard | last post by:
I have tried to use the System.Security.Cryptography.Xml.SignedXml class to sign an Xml message with Xml-DSIG and using an Enveloped signature type and the sha1RSA algorithm. Everything works fine...
5
1918
by: GaryDean | last post by:
I have to write an asp.net app that uses a web service requiring x.509 certificates. Are there any good docs on how to do this both in code and on the server. Most of the stuff I'm finding...
0
1094
Frinavale
by: Frinavale | last post by:
I am currently developing a VB.NET application which consumes a Web Service (implemented in Java). I am hosting the Web Service using Apache Tomcat on my development machine (localhost). The web...
0
7072
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
7271
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,...
1
6979
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5570
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,...
1
4998
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...
0
3149
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1498
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
730
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
373
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.