cURL / Mailing Lists / curl-users / Single Mail

curl-users

curl: (35) error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol

From: Humayun Bhyat <bhyatster_at_gmail.com>
Date: Sat, 11 Aug 2007 21:54:55 -0400

HI,
       When using the cURL CLI, and connection to a FileZilla server setup
with SSL/TLS support enabled I am gett the following error:

curl: (35) error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown
protocol

Everything works with plain FTP Also when I try using sftp, I get the
folllowing :

curl: (1) libcurl was built without LIBSSH2, scp: not supported!

What version of the curl CLI should I be using to get sftp support.

The following is the full log of the command and output which I am using and
getting for my promary error.

C:\cURL\bin>curl --disable-epsv -u "userId:XXXXXX" --ftp-ssl --insecure -v
ftps://xxxxxvista1/temp/ -v
* About to connect() to xxxxxvista1 port 990 (#0)
* Trying 192.168.2.4... connected
* Connected to xxxxxvista1 (192.168.2.4) port 990 (#0)
* SSL: couldn't set callback!
* error setting certificate verify locations, continuing anyway:
* CAfile: /usr/local/share/curl/curl-ca-bundle.crt
  CApath: none
* SSL connection using AES256-SHA
* Server certificate:
* subject:
/CN=xxxxxVISTA1/C=US/ST=Florida/L=Tampa/O=XXX/OU=WWI/emailAddress=bhyatster_at_gmail.com
* start date: 2007-08-11 21:48:55 GMT
* expire date: 2008-08-10 21:48:55 GMT
* common name: xxxxxVISTA1 (matched)
* issuer:
/CN=xxxxxVISTA1/C=US/ST=Florida/L=Tampa/O=XXX/OU=WWI/emailAddress=bhyatster_at_gmail.com
* SSL certificate verify result: self signed certificate (18), continuing
anyway.
< 220-FileZilla Server version 0.9.23 beta
< 220-written by <snipp>

< 220 Please visit <snipp>

> USER userId
< 331 Password required for userId
> PASS XXXXXX
< 230 Logged on
> PBSZ 0
< 200 PBSZ=0
> PWD
< 257 "/" is current directory.
* Entry path is '/'
> CWD temp
< 250 CWD successful. "/temp" is current directory.
> PASV
* Connect data stream passively
< 227 Entering Passive Mode (192,168,2,4,19,142)
* Trying 192.168.2.4... connected
* Connecting to 192.168.2.4 (192.168.2.4) port 5006
> TYPE A
< 200 Type set to A
> LIST
< 150 Connection accepted
* Doing the SSL/TLS handshake on the data stream
* SSL: couldn't set callback!
* error setting certificate verify locations, continuing anyway:
* CAfile: /usr/local/share/curl/curl-ca-bundle.crt
  CApath: none
* error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol
* Closing connection #0

C:\cURL\bin>curl -V
curl 7.16.4 (i586-pc-mingw32msvc) libcurl/7.16.4 OpenSSL/0.9.8e zlib/1.2.2
Protocols: tftp ftp telnet dict ldap http file https ftps
Features: Largefile NTLM SSL SSPI libz

I have used the FileZilla Client and it works, could this have any thing to
do with the fact that I am using a self generated cert on the FileZilla
server?

Regards

Honda
Received on 2007-08-12