cURL / Mailing Lists / curl-users / Single Mail

curl-users

SSL connect to Glub Tech server

From: Neysan S. <sturdne_at_gmail.com>
Date: Thu, 11 May 2006 13:58:42 -0400

Howdy,

I have searched thru the archive and tried some things I saw there,
but so far, nothing has worked. Here's the skinny:

I need to connect to a server running FTPS with the Glub Tech SSL
wrapper on it. I can make the connection, list the directory, and
even goes so far as to place an empty file on the server. However,
that is as far as it goes. I time out when it tries to do the STOR
operation. I have tried just about every option there is for FTP and
SSL, but so far, in whatever combinations I have used, nothing has
worked.
I tried the current stable windows binary 7.15.3, then the daily build
from 05/09/2006, then I tried building my own twice. The first make I
tried vanilla. The second I edited the ftp.c file and tried changing
some lines that I saw in a message on this list from Daniel Stenberg
back in Aug. 2005 (subject: FTPS help). This code did not seem to do
the trick, tho the situation described was similar to what I am
experiencing. I could have implemented the code incorrectly though,
as it seems like some of the communication from that message was
incomplete on the list archives.

Any help would be greatly appreciated. Thanks!

here's a basic (edited) log of what generally happens:

>curl.exe -T "c:\stuffing\curl\test.txt" --disable-eprt
--disable-epsv -v -Q "prot p" --ftp-ssl -u xxx:xxx ftp://xx.xx.xx:991

* About to connect() to xxxx port 991
* Trying xx.xx.xx.xx... connected
* Connected to xxxxx (xx.xx.xx.xx) port 991
< 220-Glub Tech Secure FTP Wrapper (v2.5.7)
< 220 xxxxx FTP server (Version wu-2.6.2(1) Mon Aug 16 17:10:57 IDT 2004) ready.
> AUTH SSL
< 234 AUTH Command OK. Initializing SSL connection.
* successfully set certificate verify locations:
* CAfile: C:\stuffing\curl-7.15.3test2\curl-7.15.3\src\curl-ca-bundle.crt
  CApath: none
* SSLv2, Client hello (1):
SSLv3, TLS handshake, Server hello (2):
SSLv3, TLS handshake, CERT (11):
SSLv3, TLS handshake, Server finished (14):
SSLv3, TLS handshake, Client key exchange (16):
SSLv3, TLS change cipher, Client hello (1):
SSLv3, TLS handshake, Finished (20):
SSLv3, TLS change cipher, Client hello (1):
SSLv3, TLS handshake, Finished (20):
SSL connection using DES-CBC3-SHA
* Server certificate:
* subject: /C=US/ST=Maine/L=Bangor/O=blahblah/OU=ftps/CN=xxxxx/emailAdd
ress=xxx_at_xx.xx
* start date: 2005-05-17 13:36:46 GMT
* expire date: 2010-05-16 13:36:46 GMT
* common name: xxxxx (matched)
* issuer: /C=US/ST=Maine/L=Bangor/O=blahblah/OU=ftps/CN=xxxxx/emailAddr
ess=xxx_at_xx.xx
* SSL certificate verify ok.
> USER xxxx
< 331 Password required for xxxx.
> PASS xxxx
< 230 User xxxx logged in.
> PBSZ 0
< 200 PBSZ Command OK. Protection buffer size set to 0.
> PROT P
< 200 PROT Command OK. Using Private data connection.
> PWD
< 257 "/ftp/pub/xxxx" is current directory.
* Entry path is '/ftp/pub/xxxx'
> prot p
< 200 PROT Command OK. Using Private data connection.
> PASV
* Connect data stream passively
< 227 Entering Passive Mode (xx,xx,xx,xx,210,80)
* Trying xx.xx.xx.xx... connected
* Connecting to xx.xx.xx.xx (xx.xx.xx.xx) port 53840
* Doing the SSL/TLS handshake on the data stream
* successfully set certificate verify locations:
* CAfile: C:\stuffing\curl-7.15.3test2\curl-7.15.3\src\curl-ca-bundle.crt
  CApath: none
* SSL re-using session ID
* SSLv3, TLS handshake, Client hello (1):
SSL connection timeout
* Uploaded unaligned file size (0 out of 35 bytes)
  % Total % Received % Xferd Average Speed Time Time Time Current
                                 Dload Upload Total Spent Left Speed
  0 0 0 0 0 0 0 0 --:--:-- 0:05:00
--:--:-- 0* Closing connection #0
* SSLv3, TLS alert, Client hello (1):

curl: (28) SSL connection timeout
Received on 2006-05-11