473,765 Members | 2,028 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

SSL client/server communication

56 New Member
I'm trying to build a client for a third party application that resides on the server and accepts SSL communication. i'm using this code:

tcpClient.Conne ct(m_IPAddress, m_Port)

Dim sslStream As New SslStream(tcpCl ient.GetStream, False, New Net.Security.Re moteCertificate ValidationCallb ack(AddressOf ValidateServerC ertificate))

sslStream.Authe nticateAsClient (m_IPAddress)

If sslStream.CanWr ite And sslStream.CanRe ad Then
Dim bytes(tcpClient .ReceiveBufferS ize) As Byte
Dim sendBytes As [Byte]() = Encoding.ASCII. GetBytes(XMLStr eam)
sslStream.ReadT imeout = m_Timeout * 1000
sslStream.Write (sendBytes, 0, sendBytes.Lengt h)
sslStream.Read( bytes, 0, CInt(tcpClient. ReceiveBufferSi ze))
SSLSend = Encoding.ASCII. GetString(bytes )
Else
If Not sslStream.CanRe ad Then
tcpClient.Close ()
SSLSend = "0"
Else
If Not sslStream.CanWr ite Then
tcpClient.Close ()
SSLSend = "0"
End If
End If
End If

On the authenticate as client, I get an exception: A call to SSPI failed, see inner exception. Is the code I have correct? Is this a server problem?
Sep 17 '07 #1
6 3051
Plater
7,872 Recognized Expert Expert
What is the inner exception?
It will probably contain more insight onto the problem.
Sep 17 '07 #2
Matt Nunnally
56 New Member
It says "cannot obtain value".
Sep 17 '07 #3
Plater
7,872 Recognized Expert Expert
I am assuming that the underlying exception's message is "cannot obtain value"
and not that when you try to look at the underlying exception it tells you it cannot see it?
Sep 17 '07 #4
Matt Nunnally
56 New Member
I'm sorry. It says '"The Local Security Authority cannot be located"
Sep 17 '07 #5
Plater
7,872 Recognized Expert Expert
I'm sorry. It says '"The Local Security Authority cannot be located"
hmm, well that's LSASS(.exe). Do you have all that stuff running on that system?
Sep 17 '07 #6
Matt Nunnally
56 New Member
Yes. It the lsass.exe is running
Sep 17 '07 #7

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

Similar topics

88
12549
by: Mike | last post by:
Is there a way to determine what a user's default email client is? I read a post from 3 years ago that said no. I guess I'm hoping something has come along since then.
3
7230
by: Harlin | last post by:
Hi, I installed the admin client on my WebSphere box. I am now attempting to connect to my DB2 server (on another box). I have been able to find the DB2 server, instance and needed databases. These auto-register themselves in the admin client. However, when I try to connect to the db's to look at the Table details I get the following errors: ------- SQL30081N A communication error has
4
9326
by: Christian Westerlund | last post by:
Hi! Does anyone know if it is possible for a client server communication easy in .NET with these requirements: The client always initiates the communication The server only answers (responds) Uses port 80, skips firewall The server computer doesn't have a IIS or web server
1
2447
by: Alexandre (www.pointnetsolutions.com) | last post by:
I am looking at building a distributed system, and i have been looking at many different options, in some cases i was thinking of a client server relation where a client would send a string to the system as a command. i also looked at the GOF Command pattern which i could somewhat use with
2
5185
by: thilandeneth | last post by:
i need to do telnet via a web server please give me a idia to initiate the project following requirements are needed 1 Create web based custom telnet client to communicate with remote destinations. must provide login security before make communication 2 telnet communication should not be a direct 1 to 1 communication and that must be as follows Web telnet client -à Web server (telnet client) -à destination (see figure 01)
3
1237
by: bmntech | last post by:
I want to create a client app, adding value to and building on my Web app. The user of this client app will be able to seamlessly access the public web site, but will also have additional functionality and content not available on the public site. The rational is to allow the user to work disconnected, to use the client's processing power, to remove the communications delay and to provide an additional layer of privacy.
0
3272
by: news.onet.pl | last post by:
I hava a problem with communication between Java/Corba server based on JDK ORB with Java/Corba client (applet) based on the same ORB. I`m using IOR to localize server. client`s ORB i initialize like that: Dane proxy = null; ORB orb = ORB.init(parent, null); org.omg.CORBA.Object obj = orb.string_to_object(sIOR); proxy = DaneHelper.narrow(obj); server`s ORB i initialize like that:
0
1233
by: Maurizio | last post by:
I'd like to ask some suggestion regarding a software that I'm developping. For develop the project I've to use VB.NET and Framework 3.5 This is a Client Server application. I've some computer ( 1 server and 2 or 3 clients ) connected each other in LAN. This project is located in industial automation field.
5
3176
by: AeonOfTime | last post by:
Let's assume a web application (in this case a browser-based game) with a custom HTTP server built on PHP, and a client also built on PHP. The client uses the server to access and change data. Even if the client server communication is not directly visible to the user (who logs into the client), the fact that the server is publicly accessible (a port sniffer would be enough to find it) means the communication has to be secured. How...
0
9404
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10164
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10007
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9959
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9835
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6649
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5423
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3532
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2806
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.