Closed
Description
Kind of follow up to #184. Explicit FTPS works now, however:
- Not possible to use the context API, since there is no way to call updgrade_to_tls() in between client.connect() and client.login().
- I was not able to download from pyftpdlib until I used this construction:
await client.upgrade_to_tls(self.ssl_context)
client._upgraded_to_tls = True # pylint: disable=protected-access
client._open_connection = functools.partial(asyncio.open_connection, ssl=client.ssl) # pylint: disable=protected-access
AFAIK, _upgraded_to_tls is never set in the actual code, and _open_connection is incorrect after update since it is not update with new ssl instance.
Metadata
Metadata
Assignees
Labels
No labels