I am sure lot of people are looking for an answer to this question, in one or the other way, While looking in different discussion threads asking similar question, I found that none of the threads has any official/valid response for this. Posting this question together with brief of informations that I gathered while spending hours on Investigation (might help some developers)
Background
While trying to use createTcp method for FTPS protocol, I encountered the following error:
Received: 421 Sorry, cleartext sessions are not accepted on this server. [INFO] : Please reconnect using SSL/TLS security mechanisms.
Reason
Somewhere in your code you need to configure SSL/TLS mechanism. But as per my knowledge in the latest release "3.1.3.GA" it cannot be done. (See my list of Questions below).
Some Information and Findings
- File Upload/Download using FTP protocol (and not FTPS)? Best answer available here, not tested by me.
- Issue raised by Appcelerator based on this. Probably, have a look at these issues TIMOB-6211 & TIMOB-6212
- Support of TLS/SSL by Titanium Studio? Looking at the documentation and above mentioned issue it does not seem Titanium supports SSL/TLS for TCP sockets.
Request
Team Appcelerator, Thank you for developing such an awesome tool for JS developers. I know you guys must be busy with loads of work, but it will save hours of developers if you can answer the following questions?
Questions
- Whether Titanium has support for configuring SSL/TLS with createTcp?
- If Yes, How can we configure SSL/TLS when using Sockets for FTPS, some code sample would be nice?
- If No, then is there any workaround available?
Please do answer.