Added minimal support for FTP with TLS/SSL#110
Added minimal support for FTP with TLS/SSL#110jayagl wants to merge 5 commits intosergi:masterfrom jayagl:master
Conversation
Tested only over FTP with implicit TLS/SSL encryption. Operations tested - ls(), get().
|
Sorry this is very minimal, but it doesn't break any of the previous functionality and provides FTP with TLS in a very simple form.
|
|
Hi @jayagl. Can you include tests in your PR? Thanks! |
Updated the jsftp_test.js to run all the tests with SSL config after running them normally. Made some changes to deal with windows file systems.
|
Hi @sergi, I figured it would be best to run all the pre-existing tests with SSL enabled. I've added some code to do that. I also made some other minor changes to the test file to be more cross-platform friendly. I had lots of trouble running tests in my local environment: with windows filesystem things; creating an FTP server (resorted to running a server externally); with before/after hooks, etc. |
|
do you plan to merge this request ? |
|
For me, this code is working. The normal (non-secure) test suite runs up to "test invalid password" and after that it fails for reasons I haven't yet investigated. When I then apply this pull request and use the same server (that also supports explicit FTPS, but not implicit FTPS by the way) then the test suite runs in the same way and crashes at the same place. It would be great to see this integrated, as that would make FTPS available in the Brackets code editor through the eqFTP plugin. If that helps, I can provide a temporary FTPS test account on my server for testing. |
|
Any hope of this making it in? It would be lovely to have. |
|
I've created another PR with more concise changes to the latest version. |
Tested only over FTP with implicit TLS/SSL encryption.
Operations tested - ls(), get().