cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: curl and ssl 2

From: Michael Pace <mpace79_at_yahoo.com>
Date: Thu, 27 Jan 2005 13:58:24 -0800 (PST)

Thanks for the reply. I thought the login directory
was odd as well. I try to specify my login directory
when I initiate the connection,
ftp://ftpsitename/username, but then curl tells me:

SIZE username
500 Command not recognized.

Then I get some SSL errors and it says goodbye. I
don't get the chance to push my file up. Any ideas?

[root_at_server ~]$ curl -v -k --disable-epsv --ftp-ssl
--cert /home/certs/Cert.pem:pwd -u user:password
ftp://ftpsite/username
* About to connect() to ftpsite port 21
* Trying 1.1.1.1... * connected
* Connected to ftpsite (1.1.1.1) port 21
< 220 IE-FTP server (v4r3m0.f) ready on system USA.
> AUTH SSL
< 234 AUTH command accepted - proceed with
Negotiation.
* successfully set certificate verify locations:
* CAfile: /usr/share/ssl/certs/ca-bundle.crt
  CApath: none
* SSL connection using EXP1024-DES-CBC-SHA
* Server certificate:
* subject: /C=US/O=IBB/OU=Interchange Services
for e-business: Server/CN=ftpsite
* start date: 2003-07-11 20:43:54 GMT
* expire date: 2005-07-10 20:43:54 GMT
* common name: ftpsite (matched)
* issuer: /C=US/O=IBB/OU=Interchange Services
for e-business/CN=PKI Services Root CA
* SSL certificate verify result: error number 1 (19),
continuing anyway.
> USER username
< 331 Enter Password.
> PASS password
< 230 Ready.
* We have successfully logged in
> PBSZ 0
< 200 Protection buffer size successfully set.
> PROT P
< 200 Data protection level now set to 'P'
(Protected).
> PWD
< 257 "*.*/*" is the current directory
* Entry path is '*.*/*'
> PASV
< 227 Entering Secured Passive Mode
(204,146,24,68,253,138)
* Trying 1.1.1.1... * connected
* Connecting to 1.1.1.1 (1.1.1.1) port 64906
* Connected the data stream with PASV!
> TYPE I
< 200 Type now set to I.
> SIZE username
< 500 Command not recognized.
> RETR username
< 150 Data connection ready to be secured.
* 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
ftpsite:21
* Connection #0 to host ftpsite left intact
curl: (35) Unknown SSL protocol error in connection to
ftpsite:21
* Closing connection #0

--- Daniel Stenberg <daniel-curl_at_haxx.se> wrote:

> On Thu, 27 Jan 2005, Michael Pace wrote:
>
> > I'm not sure why I am getting disconnected. Can
> anyone help?
>
> >> PWD
> > < 257 "*.*/*" is the current directory
>
> That is an interesting login directory!
>
> > * SSL certificate verify result: error number 1
> (19),
> > continuing anyway.
> > * Getting file with size: -1
> > < 226 List for user ( ).*.*, class *
> transferred
> > O.K.
> > * Connection #0 to host ftpsite left intact
> >> QUIT
> > < 221 Goodbye. Thank you for using IE mailbox.
> > * Closing connection #0
>
> Uh, where are you getting disconnected? What is the
> problem really?
>
> --
> Daniel Stenberg -- http://curl.haxx.se --
> http://daniel.haxx.se
> Dedicated custom curl help for hire:
> http://haxx.se/curl.html
>

                
__________________________________
Do you Yahoo!?
Yahoo! Mail - now with 250MB free storage. Learn more.
http://info.mail.yahoo.com/mail_250
Received on 2005-01-27