cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: ftps using curl to filezilla server

From: Armel Asselin <asselin.armel_at_wanadoo.fr>
Date: Wed, 11 Oct 2006 19:50:21 +0200

basically:
the URL: ftp://myftp.site.com/path
the options:
CURLOPT_FTP_SSL = CURLFTPSSL_ALL
CURLOPT_FTP_SSLAUTH = CURLFTPAUTH_TLS
CURLOPT_SSL_VERIFYPEER = 0 to disable (if your certificate is self signed use this, until you add it to your certificate file), 1 to enable
CURLOPT_SSL_VERIFYHOST = what you want ? 0 to disable, 2 to enable

Is it ok with that?

Regards
Armel
  ----- Original Message -----
  From: kuriakose
  To: 'libcurl development'
  Sent: Wednesday, October 11, 2006 6:57 PM
  Subject: RE: ftps using curl to filezilla server

  Please can you help how to implement this using libcurl through code .

  I tried use ftp in url , and use curl SSL options. It is taking as ordinary ftp and not enabling ssl featues..

  I think you have tried ftps with filezilla through libcurl .

  Please help !

  Thanks in advance,

  Regards

  Kuriakose

  ********************************************************************************************************

   This e-mail and attachments contain confidential information from HUAWEI, which is intended only for the person or entity whose address is listed above. Any use of the information contained herein in any way (including, but not limited to, total or partial disclosure, reproduction, or dissemination) by persons other than the intended recipient's) is prohibited. If you receive this e-mail in error, please notify the sender by phone or email immediately and delete it!

------------------------------------------------------------------------------

  From: curl-library-bounces_at_cool.haxx.se [mailto:curl-library-bounces_at_cool.haxx.se] On Behalf Of Armel Asselin
  Sent: Tuesday, October 10, 2006 1:00 PM
  To: libcurl development
  Subject: Re: ftps using curl to filezilla server

  for some reason, libcurl ftps expects data connection to be encrypted without telling PROT P, but FileZilla expects the contrary.

  the technic is to use simple ftp:// then upgrade with PROT P, and there it works.

  in fact from what I could read here and there, implicit protection (ftps) is rather obsolete, however, like you, I would have found that cool to have this works directly [one way could be to send PROT P unconditionnaly in ftps mode, it would not be understood by very old ftp implemtentations other SSL, and would be by newer ones, which consequently would make the server and libcurl expect the same thing]

  Armel

    ----- Original Message -----

    From: kuriakose

    To: curl-library_at_cool.haxx.se

    Sent: Tuesday, October 10, 2006 7:01 AM

    Subject: ftps using curl to filezilla server

    Hi,

    While connecting to filezilla server 0.9.19 through curl using ftps , iam getting the following error .

    I am setting the CAPATH and CAINFO.

    Please help!!!

    Doing the SSL/TLS handshake on the data stream

    successfully set certificate verify locations:

      CAfile: certificate.crt

    CApath: .

    SSL re-using session ID

    error:1408F10B:SSL routines:SSL3_GET_RECORD:wrong version number

    DO-MORE phase ends

    Connection #0 to host localhost left intact

    Closing connection #0

    ---------------------------------------------------------------------------------------
    Orange vous informe que cet e-mail a été contrôlé par l'anti-virus mail.
    Aucun virus connu à ce jour par nos services n'a été détecté.

  ---------------------------------------------------------------------------------------
  Orange vous informe que cet e-mail a été contrôlé par l'anti-virus mail.
  Aucun virus connu à ce jour par nos services n'a été détecté.
Received on 2006-10-11