cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: curl ftps

From: kalin m <kalin_at_el.net>
Date: Tue, 01 Mar 2011 20:08:39 -0500

On 3/1/11 4:49 PM, Dan Fandrich wrote:
> On Tue, Mar 01, 2011 at 05:32:55AM -0500, kalin m wrote:
>> thanks for the reply...
>>
>> no matter what flags i add to the command it always hangs on:
>>
>> * SSLv3, TLS handshake, Client hello (1):
>> } [data not shown]
>>
>> curl: (35) Unknown SSL protocol error in connection to xx.xx.xx.xx:990
>>
>> if i just use ftp://.. curl tries port 21. so if i put :990 after the domain i get the same result as the above.
>> i did use --ftp-ssl-control. same result.
>
> Yes, with ftp:// curl tries port 21. But with --ftp-ssl, it will
> attempt to switch to SSL after connection. This is the only standards-
> compliant method of making an FTP SSL connection.

that's not really what happens. even with --ftp-ssl it tries port 21 and eventually times out.

>
>> i tried this from 3 different os machines. only one machine works - an os x. with OpenSSL 1.0.0c
>>
>> this is what works on the os x:
>>
>> curl --ftp-ssl -vvvv -3 -k 'ftps://user:pass_at_xx.xx.xx.xx/in/' -T test113
>
> Are you saying that curl actually does connect to the desired server
> successfully from one machine?

yes.

> If it works from there, it should work
> the same way from other machines.

right.

>> .....
>> configure: WARNING: SSL disabled, you will not be able to use HTTPS, FTPS, NTLM and more.
>> configure: WARNING: Use --with-ssl, --with-gnutls, --with-polarssl, --with-nss or --with-axtls to address this.
>> ......
>>
>> SSL support: no (--with-{ssl,gnutls,nss,polarssl,axtls} )

> Are you building 7.21.4 or 7.18.2? If there was a build problem in
> 7.18.2, it may have been fixed since then. Take a look at the config.log file
> to get some clues as to why it isn't picking up the new OpenSSL version.
>

i did dig into the log. basically the problem was this:

http://curl.haxx.se/mail/archive-2007-11/0013.html

and this helped a lot:

http://curl.haxx.se/mail/tracker-2008-08/0026.html

and then this (cause i did get that awesome -fPIC error):

http://help.directadmin.com/item.php?id=314

so in short - after some pain i did get this resolved. i'd think that all this should have been resolved in the last 3 and a half years but i guess it's not a priority.

thank you for your help...

>>>> Dan
> -------------------------------------------------------------------
> List admin: http://cool.haxx.se/list/listinfo/curl-users
> FAQ: http://curl.haxx.se/docs/faq.html
> Etiquette: http://curl.haxx.se/mail/etiquette.html
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2011-03-02