bnix / double-bag-ftps

Provides a child class of Net::FTP to support implicit and explicit FTPS.
MIT License
48 stars 26 forks source link

Reuse previous ssl session #6

Closed djmassad closed 10 years ago

djmassad commented 11 years ago

Version 0.1.1 has an issue when connecting to FTPS servers that are required to exhibit SSL session reuse. When retrieving a file after connecting, the following message appears:

522 SSL connection failed; session reuse required: see require_ssl_reuse 
option in vsftpd.conf man page (Net::FTPPermError)

I copied this fix from https://github.com/alain75007/double-bag-ftps/commit/5aefbb7daeb24173993467326763fbf24ae72d39 since that fork doesn't seem to work with Ruby 2.0.

wconrad commented 11 years ago

The test suite for https://github.com/wconrad/ftpd detects no bugs introduced by this change. This is apropos because ftpd's tests exercise double-bag-ftps quite heavily. However, those tests do not exercise SSL session reuse, so the passing tests are only an indication that existing behavior still works.