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
 
The server hello message uses a protocol that was not recognized.  
by mdam
posted on 2005/02/19

Hi,

First off all thanks for the hard work on this excellent project!
When I try to connect using the ftpclient I get the following error:

Org.Mentalis.Security.SecurityException: An error occurs while communicating wit
h the remote host. ---> Org.Mentalis.Security.Ssl.Shared.SslException: The serve
r hello message uses a protocol that was not recognized.
at Org.Mentalis.Security.Ssl.Shared.CompatibilityLayer.ProcessServerHello(Byt
e[] bytes, Int32 offset, Int32 size)
at Org.Mentalis.Security.Ssl.Shared.CompatibilityLayer.ProcessHello(Byte[] by
tes, Int32 offset, Int32 size)
at Org.Mentalis.Security.Ssl.Shared.SocketController.OnReceive(IAsyncResult a
r)
--- End of inner exception stack trace ---
at Org.Mentalis.Security.Ssl.SecureSocket.EndSend(IAsyncResult asyncResult)
at Org.Mentalis.Security.Ssl.SecureSocket.Send(Byte[] buffer, Int32 offset, I
nt32 size, SocketFlags socketFlags)
at FtpClient.SendCommand(String command) in c:\programming\seclib-1.0\samples
\ssl\ftpclient\ftpclient.cs:line 138
at FtpClient.DownloadFile(Url url, Int32 choice) in c:\programming\seclib-1.0
\samples\ssl\ftpclient\ftpclient.cs:line 106
at FtpClient.Start() in c:\programming\seclib-1.0\samples\ssl\ftpclient\ftpcl
ient.cs:line 91
at FtpClient.Main(String[] args) in c:\programming\seclib-1.0\samples\ssl\ftp
client\ftpclient.cs:line 48

I am using the example ftpclient from the sample directory. Other ftp clients supporting TLS/SSL are able to connect to the same server. Anybody has an idea what's causing this error? Thanks in advance.

by Pieter Philippaerts [Pieter at mentalis dot org]
posted on 2005/03/25

This error occurs when the server the client is connecting to isn't using the SSL3 or TLS1 protocol. Most likely, the FTP server is still in plaintext mode.

 

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