Results 1 to 10 of 12
Hello,
I am using "curl" command line tool to upload file to ftp server through ftps.
I have also tried with the "Secure FTP" software from windows using Implicit mode, ...
- 01-06-2010 #1Just Joined!
- Join Date
- Jan 2010
- Posts
- 9
Curl FTPS problem, unable to upload file
Hello,
I am using "curl" command line tool to upload file to ftp server through ftps.
I have also tried with the "Secure FTP" software from windows using Implicit mode, which works fine while transfering files.
Command as follows:
curl -vk --ftp-ssl -u [username]:[password] ftps://ftp.hostname/directory/test.txt -T /tmp/text.txt --ftp-pasv --disable-expsv
Login to server successfully but geting error while start to transfer data. The verbose mode content are as follows:
* About to connect() to ftp.lite-uptexas.com port 990
* Trying 206.192.113.55... * connected
* Connected to ftp.lite-uptexas.com (206.192.113.55) port 990
* successfully set certificate verify locations:
* CAfile: /usr/share/ssl/certs/ca-bundle.crt
CApath: none
* SSL connection using DES-CBC3-SHA
* Server certificate:
* subject: /C=?/ST=?/L=?/O=Secure FTP Wrapper/OU=Automatically Generated/CN=206.192.113.55
* start date: 2009-10-05 17:30:45 GMT
* expire date: 2012-07-26 17:30:45 GMT
* common name: 206.192.113.55 (does not match 'ftp.lite-uptexas.com')
* issuer: /C=?/ST=?/L=?/O=Secure FTP Wrapper/OU=Automatically Generated/CN=206.192.113.55
* SSL certificate verify result: error number 1 (1
, continuing anyway.
< 220-"128 Bit Secure FTP Wrapper"
< 220 Microsoft FTP Service
> USER TSP200000170
< 331 Password required for TSP200000170.
> PASS *********
< 230 User TSP200000170 logged in.
* We have successfully logged in
> PBSZ 0
< 200 PBSZ Command OK. Protection buffer size set to 0.
> PWD
< 257 "/TSP200000170" is current directory.
* Entry path is '/TSP200000170'
> CWD input
< 250 CWD command successful.
> EPSV
< 500 'EPSV': command not understood
> PASV
< 227 Entering Passive Mode (206,192,113,55,11,201).
* Trying 206.192.113.55... * connected
* Connecting to 206.192.113.55 (206.192.113.55) port 3017
* Connected the data stream with PASV!
> TYPE I
< 200 Type set to I.
> STOR TSP200000170_201001.ZIP
< 125 Data connection already open; Transfer starting.
* Doing the SSL/TLS handshake on the data stream
* successfully set certificate verify locations:
* CAfile: /usr/share/ssl/certs/ca-bundle.crt
CApath: none
* SSL re-using session ID
* Unknown SSL protocol error in connection to ftp.lite-uptexas.com:990
* Closing connection #0
curl: (35) Unknown SSL protocol error in connection to ftp.lite-uptexas.com:990
Please advise, where i was wrong.
Or this is the other issue.
Thanks in advance,
IMRAN
- 04-28-2010 #2Just Joined!
- Join Date
- Jan 2010
- Posts
- 9
Please help me
I am still wondering with this problem
Please help
Thanks,
Imran
- 05-04-2010 #3Just Joined!
- Join Date
- Jan 2010
- Posts
- 9
Hi,
Here we are getting success while uploading the file using windows Secure FTP 2.5 (For same server).
All functionality are working fine from the same s/w.
But we hangs out while going to use curl in Linux.
The secure ftp server is using "Microsoft FTP Service" if we carefully watch at the verbose mode details. Is this any platform dependency problem?
Please suggest.
Any help will be appreciated.
Regards,
Imran.
- 05-11-2010 #4Just Joined!
- Join Date
- May 2010
- Posts
- 4
Re: Curl FTPS problem, unable to upload file
Hi Imran!
I saw your problem today,
we have exactly the same , did you solve it ?
have a nice day
thanks
Xavier
- 05-11-2010 #5Just Joined!
- Join Date
- Jan 2010
- Posts
- 9
Yes,
I got the another way to upload the file on the same ftps server.
With the help of lftp command.
lftp is Sophisticated file transfer program which we can use for multiple operation.
You will get the more details for lftp in linux manual page.
Regards,
Imran
- 05-11-2010 #6Just Joined!
- Join Date
- Jan 2010
- Posts
- 9
Please reply me with the deatils of the actual problem which u r facing, so we can focus on the SSL socket layer problem.
N get rid off it.

Imran
- 05-11-2010 #7Just Joined!
- Join Date
- May 2010
- Posts
- 4
Re: Curl FTPS problem, unable to upload file
yes, thanks
in fact i've tryed with -3 to force the use of
SSL V3 cause I've seen a thread of the same problem somewhere,
here is now the result :
RETR Myfile.txt
150 Connection accepted
...
SSLv3 , TLS handshake, Client hello
SSLv?, Unknown (2):
error SSL routines:SSL3_GET_RECORD:wrong version number
DO-MORE phase ends with 35
thanks for your help
regards
Xavier
- 05-11-2010 #8Just Joined!
- Join Date
- May 2010
- Posts
- 4
I' m using
curl 7.16.1 + libcurl/7.16.1 Openssl/0.9.7d
could it be a problem with openssl version ?
thanks
Xavier
- 05-12-2010 #9Just Joined!
- Join Date
- Jan 2010
- Posts
- 9
I have already tried to force the SSL version 3 ('-3') mode while uploading the file and got the same problem
error SSL routines:SSL3_GET_RECORD:wrong version number
Actually, the sercure FTP server which we are using is Microsoft FTP server (May be configured in IIS 7.5). So I think this will be the incompatibility issue.
I have tried with the windows 'Secure FTP 2.5' tool to connect the same and it works file.
We need to figure out the thing.
- 05-12-2010 #10Just Joined!
- Join Date
- May 2010
- Posts
- 4
Re: Curl FTPS problem, unable to upload file
hi Imran,
I've made it work with this configuration :
curl 7.20.1 (i386-pc-win32) libcurl/7.20.1 OpenSSL/0.9.8n zlib/1.2.5 libidn/1.18 libssh2/1.2.5
Protocols: dict file ftp ftps http https imap imaps ldap pop3 pop3s rtsp scp sftp smtp smtps telnet tftp
Features: AsynchDNS IDN Largefile NTLM SSL SSPI libz
I suspect a bug with openssl 0.9.7d ...
regards
Xavier


Reply With Quote