curl-and-python

RE: Connection Problems with FTPS

From: Jonathan Hutcherson <jhutcherson_at_vikus.net>
Date: Wed, 11 May 2005 10:41:54 -0400

I'm sending the trace file from cURL when we try to connect. Hope it
helps!

>>> command ran:
C:\Documents and Settings\dansan\Desktop\curl-7.13.2>curl.exe
ftps://ftp.<removed>.com/ -T c:\foo.txt -u username:password -v --trace
trace.txt -2

>>> Output
curl: (35) Unknown SSL protocol error in connection to
ftp.<removed>.com:990

>>> Trace
== Info: About to connect() to ftp.<removed>.com port 990
== Info: Trying 192.168.1.6... == Info: connected
== Info: Connected to ftp.<removed>.com (192.168.1.6) port 990
== Info: successfully set certificate verify locations:
== Info: CAfile: C:\Documents and
Settings\dansan\Desktop\curl-7.13.2\curl-ca-bundle.crt
  CApath: none
== Info: SSLv2, Client hello (1):
<= Send SSL data, 49 bytes (0x31)
0000: 01 00 02 00 18 00 00 00 10 07 00 c0 05 00 80 03 ................
0010: 00 80 01 00 80 08 00 80 06 00 40 04 00 80 02 00 ..........@.....
0020: 80 4a 52 3b d6 47 a0 20 10 5d ee 22 be a7 c7 51 .JR;.G. .]."...Q
0030: 83 .
== Info: Unknown SSL protocol error in connection to
ftp.<removed>.com:990
== Info: Closing connection #0

######################################################

>>> comand ran (with -1 or -3)
C:\Documents and Settings\dansan\Desktop\curl-7.13.2>curl.exe
ftps://ftp.<removed>.com/ -T c:\foo.txt -u username:password -v --trace
trace.txt -3

>>> output
curl: (35) error:1408F10B:SSL routines:SSL3_GET_RECORD:wrong version
number

>>> trace
== Info: About to connect() to ftp.<removed>.com port 990
== Info: Trying 192.168.1.6... == Info: connected
== Info: Connected to ftp.<removed>.com (192.168.1.6) port 990
== Info: successfully set certificate verify locations:
== Info: CAfile: C:\Documents and
Settings\dansan\Desktop\curl-7.13.2\curl-ca-bundle.crt
  CApath: none
== Info: SSLv3, TLS handshake, Client hello (1):
<= Send SSL data, 97 bytes (0x61)
0000: 01 00 00 5d 03 00 42 82 16 a2 f5 d1 43 74 bf 2b ...]..B.....Ct.+
0010: 25 89 64 70 1c 44 60 d9 29 c6 b9 1b f9 07 cb 03 %.dp.D`.).......
0020: a7 8d af fd f2 6f 00 00 36 00 39 00 38 00 35 00 .....o..6.9.8.5.
0030: 16 00 13 00 0a 00 33 00 32 00 2f 00 07 00 66 00 ......3.2./...f.
0040: 05 00 04 00 63 00 62 00 61 00 15 00 12 00 09 00 ....c.b.a.......
0050: 65 00 64 00 60 00 14 00 11 00 08 00 06 00 03 01 e.d.`...........
0060: 00 .
== Info: SSLv?, Unknown (2):
<= Send SSL data, 2 bytes (0x2)
0000: 02 28 .(
== Info: error:1408F10B:SSL routines:SSL3_GET_RECORD:wrong version
number
== Info: Closing connection #0

#######################################################

>>> command ran (without -2)
C:\Documents and Settings\dansan\Desktop\curl-7.13.2>curl.exe
ftps://ftp.<removed>.com/ -T c:\foo.txt -u username:password -v --trace
trace.txt

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

>>> Trace
== Info: About to connect() to ftp.<removed>.com port 990
== Info: Trying 192.168.1.6... == Info: connected
== Info: Connected to ftp.<removed>.com (192.168.1.6) port 990
== Info: successfully set certificate verify locations:
== Info: CAfile: C:\Documents and
Settings\dansan\Desktop\curl-7.13.2\curl-ca-bundle.crt
  CApath: none
== Info: SSLv2, Client hello (1):
<= Send SSL data, 130 bytes (0x82)
0000: 01 03 01 00 69 00 00 00 10 00 00 39 00 00 38 00 ....i......9..8.
0010: 00 35 00 00 16 00 00 13 00 00 0a 07 00 c0 00 00 .5..............
0020: 33 00 00 32 00 00 2f 00 00 07 05 00 80 03 00 80 3..2../.........
0030: 00 00 66 00 00 05 00 00 04 01 00 80 08 00 80 00 ..f.............
0040: 00 63 00 00 62 00 00 61 00 00 15 00 00 12 00 00 .c..b..a........
0050: 09 06 00 40 00 00 65 00 00 64 00 00 60 00 00 14 ...@..e..d..`...
0060: 00 00 11 00 00 08 00 00 06 04 00 80 00 00 03 02 ................
0070: 00 80 74 18 d7 0f 04 78 15 e0 1b ab 5c bb 56 5f ..t....x....\.V_
0080: 25 dc %.
== Info: error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown
protocol
== Info: Closing connection #0

 

> -----Original Message-----
> From: curl-and-python-bounces_at_cool.haxx.se
> [mailto:curl-and-python-bounces_at_cool.haxx.se] On Behalf Of
> Daniel Stenberg
> Sent: Wednesday, May 11, 2005 9:57 AM
> To: curl stuff in python
> Subject: Re: Connection Problems with FTPS
>
> On Wed, 11 May 2005, Jonathan Hutcherson wrote:
>
> > I am trying to write a simple python program that will allow me to
> > upload a file via FTPS to a FTP server. I keep getting,
> however, this error:
> >
> > error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol
> >
> > The thing is, we get the same error when using the cURL tool. Any
> > ideas as to what might be happening with this?
>
> And you are supposed to be able to use implicitly on port 990
> like this? Try enforcing SSLv2 or SSLv3 and see if helps!
>
> > last = ['RNFR (nil)','RNTO testfile.txt']
>
> This looks wrong. Or do you have a particular file named
> (nil) you want to rename?
>
> > auth = ['AUTH SSL']
>
> This is very wrong. You're using implicit FTPS so it is
> already "AUTH SSL", and if you'd use a ftp:// URL the
> FTPSSLAUTH option enables the auth and associated FTP
> commands. Sending this as an additional custom command will
> only confuse matters.
>
> --
> Commercial curl and libcurl Technical Support:
> http://haxx.se/curl.html
> _______________________________________________
> http://cool.haxx.se/mailman/listinfo/curl-and-python
>

_______________________________________________
http://cool.haxx.se/mailman/listinfo/curl-and-python
Received on 2005-05-11