DefaultRoot ~
ServerIdent on "FTP Server ready."
[.]
To use TLS we need to create an SSL certificate. We created it in / etc / proftpd / ssl , so next is created in the first path:
mkdir / etc / proftpd / ssl
Finally we can create the SSL certificate as follows:
openssl req -new -x509 -days 365 -nodes -out /etc/proftpd/ssl/proftpd.cert.pem -keyout /etc/proftpd/ssl/proftpd.key.pem
Country Name (2 letter code) [AU]:
State or Province Name (full name) [Some-State]:
Locality Name (eg, city) []:
Organization Name (eg, company) [Internet Widgits Pty Ltd]:
Organizational Unit Name (eg, section) []:
Common Name (eg, YOUR name) []:
Email Address []:
To enable TLS in ProFTPd , open /etc/proftpd/proftpd.conf :
en /etc/proftpd/proftpd.conf
and uncomment ' Include /etc/proftpd/tls.conf '
[.]
#
# Này được dùng cho FTPS các kết nối
#
Include /etc/proftpd/tls.conf
[.]
Then open /etc/proftpd/tls.conf and make it look like this:
en /etc/proftpd/tls.conf
If you use TLSRequired on , then only TLS connections are allowed (this will be blocked with older FTP clients that are not supported for TLS); Using TLSRequired off, TLS and non-TLS connections will be allowed depending on the support of the FTP client.
Restart ProFTPd:
/etc/init.d/proftpd restart
You can try connecting using your FTP client, but you should reconfigure it to use TLS (this is necessary if you use TLSRequired on).
If you have problems with TLS, you can see the /var/log/proftpd/tls.log log file.
To use FTP with TLS, you need an FTP client that supports TLS, such as FileZilla .
In FileZilla open Server Manager :
Select the server using ProFTPd with TLS. In the Server type of the drop-down menu, select FTPES instead of FTP :
You can now connect to the server. If this is your first time doing this, you need to accept the server's new SSL certificate:
Once everything goes smoothly, you will begin the process of logging into the server.