:::: MENU ::::

Monthly Archives / October 2014

  • Oct 07 / 2014
  • 0
Python

Use FTPS (SSL/TLS) with Python 2.6

By default, Python 2.6 does not permit to open an FTPS connection (using SSL/TLS) and restricts the use of non secure protocol FTP.
However, it’s possible to get around this lack by using the FTP library available since version 2.7, which is fully compatible and supported with 2.6.

You can get the library directly from official sources or through the link below:
http://www.bggofurther.com/wp-content/uploads/2014/10/ftplib.zip

Once the library copied (you can either replace the existing library or integrate it locally), you can so open an FTPS connection by using the FTP_TLS library. For example:

You can so maintain your applications running with Python 2.6 and use a secure connection for FTP!

Question ? Contact