On Wed, Oct 10, 2001 at 01:51:34PM -0700, Daniel Franks wrote:
> I am new to the list and OpenSSL.  As the company programmer I have been
> assigned to setup FTP over SSL and am looking for pointers.  

Ask your favourite search engine for the document called
draft-murray-auth-ftp-ssl-07.txt. (It's an Internet-draft, or I-D for
short.)

M2Crypto, a Python interface to OpenSSL, does FTP/TLS. Here's a 
transcript:

  >>> from M2Crypto import ftpslib
  >>> f = ftpslib.FTP_TLS()
  >>> f.connect('', 9021)
  '220 spinnaker.dyndns.org M2Crypto (Medusa) FTP/TLS server v0.07 ready.'
  >>> f.auth_tls()
  >>> f.set_pasv(0)
  >>> f.login('ftp', 'ngps@')
  '230 Ok.'
  >>> f.retrlines('LIST')
  -rw-rw-r--   1 0        198          2326 Jul  3  1996 apache_pb.gif
  drwxrwxr-x   7 0        198          1536 Oct 10  2000 manual
  drwxrwxr-x   2 0        198           512 Oct 31  2000 modpy
  drwxrwxr-x   2 0        198           512 Oct 31  2000 bobo
  drwxr-xr-x   2 0        198         14336 May 28 15:54 postgresql
  drwxr-xr-x   4 100      198           512 May 16 17:19 home
  drwxr-xr-x   7 100      100          3584 Sep 23  2000 openacs
  drwxr-xr-x  10 0        0             512 Aug  5  2000 python1.5
  -rw-r--r--   1 100      198           326 Jul 29 03:29 index.html
  drwxr-xr-x  12 0        0             512 May 31 17:08 python2.1
  '226 Transfer complete'
  >>> f.quit()


>   sprintf(action, "cd %s; ftp -ni %s >/dev/null 2>&1 <<!\n"
>           "%s"
>           "user %s %s\n"
>           "%s"
>           "ls * %s\n"
>           "bye\n"
>           "!\n",
>           DOWNLOAD_DIR,
>           Host,
>           Address,
>           Login, flfvend.password,
>           CurDirectory,
>           FLIST);
>   system(action);

Python allows you to script FTP easily. Python + M2Crypto gives you
FTP/TLS. Give it a go. 

M2Crypto is available here:

    http://www.post1.com/home/ngps/m2/

Cheers.
-- 
Ng Pheng Siong <[EMAIL PROTECTED]> * http://www.post1.com/home/ngps

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to