FTPS (FTP over SSL) possible?

0
Has anyone experience with connecting with a FTP using FTPS (FTP over SSL) from Mendix? Any suggestions for add-ons? edit: the application runs on-premise, not in the Mendix cloud.
asked
2 answers
4

We have succesfully patched the Pink-elephant appstore module to support FTPS.

some snippets: copy the FTPConnection.java file to a new one (FTPSConnection.java) In the main routine: load the correct ftpconnection.

add

import org.apache.commons.net.ftp.FTPSClient;

replace existing code with

        FTPSClient client = new FTPSClient(false);

insert these lines

        client.login(user, password); 
        //Set protection buffer size
        client.execPBSZ(0);
        // Set data channel protection private
        client.execPROT("P");
        // Enter local passive mode
        client.enterLocalPassiveMode();
answered
1

This depends if you want to use the Mendix cloud or not. Since FTPS needs a second data channel and that is not allowed in de Mendix cloud. See for the differences between FTPS and SFTP this site: https://www.eldos.com/security/articles/4672.php?page=all This is the reason why only SFTP is allowed in the Mendix cloud because all the data goes over one channel.

Regards,

Ronald

answered