Re: SSL through python. possible ?



TkNeo wrote:
ok i have tried around a lot but no luck. I think M2Crypto is my best
option except it requires a minimum of python 2.4 which i don't have.

What i am trying to do is to do an FTP transfer that uses SSL
(username, password authentication) and not a certificate file. The
few example i have found of the Openssl module use a certificate for
authentication unlike what i want to do.

Komodo uses ssl to provide FTPS support (FTP over SSL), using the Python ssl socket library. From memory, I think there were problems trying to get FTPS to work on earlier versions of python (earlier than Python 2.4) and also a few problems working with Python 2.4 itself.

This code might provide some help (you can search for FTPS):
http://svn.openkomodo.com/openkomodo/view/openkomodo/trunk/src/components/koFTP.py

Cheers,
Todd
.



Relevant Pages

  • Re: FTP/SSL
    ... Is everything I need in ftplib? ... "python sftp" turned up this link:http://www.lag.net/paramiko/ ... quite different from FTPS that's FTP over TLS/ ... Actually Python really lacks of good / maintained SSL libraries. ...
    (comp.lang.python)
  • Re: FTP/SSL
    ... Is everything I need in ftplib? ... - any good newbie references on using FTPS? ... "python sftp" turned up this link: http://www.lag.net/paramiko/ ...
    (comp.lang.python)
  • Re: Crypto and export laws
    ... installations may include the ssl implementation. ... Python uses OpenSSL in the ssl module and the hashlib module. ... The only Python module that actually contained crypto code ...
    (comp.lang.python)
  • Re: Python does not play well with others
    ... What's actually needed on the SSL side, I think, is to ... Then move over the Python portions of M2Crypto. ... The built in SSL package doesn't actually validate anything, ...
    (comp.lang.python)
  • ANN: M2Crypto 0.18
    ... M2Crypto is the most complete Python wrapper for OpenSSL featuring RSA, ... DSA, DH, HMACs, message digests, symmetric ciphers; SSL ... AuthCookies for web session management; FTP/TLS client and server; ...
    (comp.lang.python)