News  [SoftwareSite

Latest News
Older News
RSS Feed
 
Complete Projects
Useful Classes
Top Downloads
Message Board
AllAPI.net
 
Send Comments
Software License
Mentalis.org Buttons
Donate
 
Forums -> Security Library Forum
 
SSL Connection  
by uma [umalakshmi_g at hotmail dot com]
posted on 2006/02/14

Hi,

I am trying to connect with webserver using SSL. Server is getting connected. But When I try to send any information to server, connection gets closed and I am receiving the following error message.
"The server hello message uses a protocol that was not recognized."

I have used the following code:

Dim options As New SecurityOptions(SecureProtocol.Ssl3 Or SecureProtocol.Tls1)
options.AllowedAlgorithms = SslAlgorithms.RSA_RC4_128_MD5 Or SslAlgorithms.SECURE_CIPHERS
options.VerificationType = CredentialVerification.Manual
options.Flags = SecurityFlags.Default
options.Verifier = New CertVerifyEventHandler(AddressOf OnVerify)
Me.socket = New SecureSocket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.IP Or ProtocolType.Tcp, options)
Me.endpoint = New IPEndPoint(Dns.GetHostEntry(Me.server).AddressList(0), Me.port)
Me.socket.Connect(endpoint)
Me.socket.Send(b1)

When control comes to Me.Socket.Send(b1), I am getting the error. Kindly let me know the changes to be done to achieve the result.

Thanks in advance

by uma [umalakshmi_g at hotmail dot com]
posted on 2006/02/16

Hi,

I am getting problem while receiving response from the server.I have connected to the server using SSL. I am getting the response for connection properly. When I attempt to send Login command to the server,Socket.Send command works fine. But when Socket.receive statement gets executed, system hangs.

Please let me know where the problem is

Thanks in advance

 

Copyright © 2002-2007, The Mentalis.org Team. All rights reserved.
This site is located at http://www.mentalis.org/
Send comments to the webmaster.