cURL / Mailing Lists / curl-library / Single Mail

curl-library

SSL routines:SSL3_GET_RECORD:wrong version number

From: Paul S <claudiuso_at_hotmail.com>
Date: Sat, 02 Jun 2007 04:26:49 +0000

Hi,
Using the code below I get a "SSL routines:SSL3_GET_RECORD:wrong version
number" error:

"
                Curl.GlobalInit((int)CURLinitFlag.CURL_GLOBAL_ALL);

                Easy easy = new Easy();

                Easy.DebugFunction df = new Easy.DebugFunction(OnDebug);
                easy.SetOpt(CURLoption.CURLOPT_DEBUGFUNCTION, df);
                easy.SetOpt(CURLoption.CURLOPT_VERBOSE, true);

                Easy.WriteFunction wf = new Easy.WriteFunction(OnWriteData);
                easy.SetOpt(CURLoption.CURLOPT_WRITEFUNCTION, wf);

                Easy.SSLContextFunction sf = new
Easy.SSLContextFunction(OnSSLContext);
                easy.SetOpt(CURLoption.CURLOPT_SSL_CTX_FUNCTION, sf);

                easy.SetOpt(CURLoption.CURLOPT_URL, "ftps://127.0.0.1:221");
                easy.SetOpt(CURLoption.CURLOPT_USERPWD,
"username:password");
                easy.SetOpt(CURLoption.CURLOPT_FTPSSLAUTH,
CURLftpAuth.CURLFTPAUTH_TLS);
                easy.SetOpt(CURLoption.CURLOPT_SSLVERSION,
CURLsslVersion.CURL_SSLVERSION_TLSv1);

This is the error. Any idea what I'm doing wrong? I know the server works
fine since I can connect with a ftp client.

"About to connect() to 127.0.0.1 port 5001

  Trying 127.0.0.1...
connected

Connected to 127.0.0.1 (127.0.0.1) port 5001

SSLv3, TLS handshake, Client hello (1):

&#9786; ]&#9829;&#9786;F`'nY&#9612;, O"z&#8592;&#8592;Mm'~EZO 6
9 8 5 &#9644; &#8252;
3 2 / f &#9827; &#9830; c b a &#8597; e d ` &#9824;
&#9829;&#9786;
SSLv?, Unknown (2):

&#9787;F
error:1408F10B:SSL routines:SSL3_GET_RECORD:wrong version number

Closing connection #0"

_________________________________________________________________
Make every IM count. Download Messenger and join the im Initiative now.
Its free. http://im.live.com/messenger/im/home/?source=TAGHM_June07
Received on 2007-06-02