An asymmetric public/private keypair will need to be created. This can be done using OpenSSL in Linux. The private key will be the file that ends with .key, and public key will be the file that ends with .pem. Transfer both the public and private keys to the computer which has FileZilla Server. Follow these steps to add the public and private key to FileZilla Server:
- Select Edit > Settings.
- In the left panel, select SSL/TLS settings.
- Check-mark Enable FTP over SSL/TLS (FTPS).
- Browse and select the Private Key.
- Browse and select the Public Key.
- Leave password blank, do not make any other changes, and select OK.
To test this, using FileZilla Client, connect to FileZilla Server.
- In FileZilla Client, press Ctrl S (or select File > Connect).
- Host = IP address of our computer running FileZilla Server
- Port = 21
- Protocol = FTP - File Transfer Protocol
- Encryption = Require explicit FTP over TLS
There should be a popup box with the Self Signed Certification details. Click OK. We can use Wireshark to prove that the data is being encrypted.