cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: TclCurl: ftpssl option

From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Mon, 5 Apr 2004 12:23:33 +0200 (CEST)

On Mon, 5 Apr 2004, stefano federici wrote:

> curl::transfer -url ftps://vaxca1.unica.it/www/prova.tcl -infile prova.tcl
> -infilesize [file size prova.tcl] -verbose 1 -upload 1 -cainfo $certFile
> -userpwd "user_at_password" -ftpssl try

...

> I get the following error:
>
> Error setting option -ftpssl: try

If you use the ftps:// protocol in the URL, you won't need the additional
'ftpssl' option.

> If I omit the -ftpssl option (that option is recommended but it should
> optional when the ftps protocol is specified)

Right, that option isn't necessary when you're using ftps://. It will use SSL
for both connections automaticly then.

Do note that the (proposed) standards encourage the use of ftp:// and the
equivalent of --ftpssl.

> curl::transfer -url
> ftps://vaxca1.unica.it/www/prova.tcl -infile prova.tcl
> -infilesize [file size prova.tcl] -verbose 1 -upload 1
> -cainfo $certFile -userpwd "user_at_password"
>
> I get the following error:
>
> 7 "Failed to connect to host or proxy".

... which probably means there's no server listening to port 990 (the default
ftps port).

> curl::transfer -url ftps://vaxca1.unica.it:22/www/prova.tcl -infile
> prova.tcl -infilesize [file size prova.tcl] -verbose 1 -upload 1 -cainfo
> $certFile -userpwd "user_at_password"
>
> This time I get the error 35 "SSL connect error. The SSL handshaking failed,
> the error buffer may have a clue to the reason, could be certificates,
> passwords".

Try using the equivalent of the curl tool's --insecure option instead of the
-cainfo, just to see if this is a problem with the server certificate
verification or something else.

The output you get from -verbose might help too.

-- 
     Daniel Stenberg -- http://curl.haxx.se -- http://daniel.haxx.se
      Dedicated custom curl help for hire: http://haxx.se/curl.html
Received on 2004-04-05