Ubuntu: How to Enable tls/ssl in proftpd
07-23-2014, 08:51 AM
(This post was last modified: 07-25-2014, 01:16 AM by TGates.)
How to Enable tls/ssl in proftpd
Make folder to SSL
1: Create SSL Folder
2: Generate ssl certificate
output
3: Enable TLS In ProFTPd
edit proftpd.conf
on liste line add
save and exit
4: make ssl.conf
add
save and exit
5: restart proftpd
now you can use tls/ssl
in filezilla type ftps://website.tld
Make folder to SSL
1: Create SSL Folder
Code:
mkdir /etc/proftpd/ssl
2: Generate ssl certificate
Code:
openssl req -new -x509 -days 365 -nodes -out /etc/proftpd/ssl/proftpd.cert.pem -keyout /etc/proftpd/ssl/proftpd.key.pem
output
Code:
Generating a 2048 bit RSA private key
.....................+++
..........+++
writing new private key to 'proftpd.key.pem'
-----
You are about to be asked to enter information that will be incorporated
into your certificate request.
What you are about to enter is what is called a Distinguished Name or a DN.
There are quite a few fields but you can leave some blank
For some fields there will be a default value,
If you enter '.', the field will be left blank.
-----
Code:
Country Name (2 letter code) [AU]:US
State or Province Name (full name) [Some-State]:New York
Locality Name (eg, city) []:NYC
Organization Name (eg, company) [Internet Widgits Pty Ltd]:Name of company
Organizational Unit Name (eg, section) []: just press enter
Common Name (e.g. server FQDN or YOUR name) []: website name example.com
Email Address []:Email
3: Enable TLS In ProFTPd
edit proftpd.conf
Code:
nano /etc/proftpf/proftpd.conf
on liste line add
Code:
Include /etc/proftpd/ssl.conf
save and exit
4: make ssl.conf
Code:
nano /etc/proftpd/ssl.conf
Code:
<IfModule mod_dso.c>
LoadModule mod_tls.c
</IfModule>
<IfModule mod_tls.c>
TLSEngine on
TLSLog /var/log/proftpd/tls.log
TLSProtocol SSLv23
TLSOptions NoCertRequest AllowClientRenegotiations NoSessionReuseRequired
TLSRSACertificateFile /etc/proftpd/ssl/proftpd.cert.pem
TLSRSACertificateKeyFile /etc/proftpd/ssl/proftpd.key.pem
TLSVerifyClient off
TLSRequired on
</IfModule>
5: restart proftpd
Code:
/etc/init.d/proftpd restart
now you can use tls/ssl
in filezilla type ftps://website.tld