root@www05:~#cd /etc/ssl/private
root@www05:/etc/ssl/private#
openssl req -x509 -nodes -newkey rsa:1024 -keyout /etc/ssl/private/vsftpd.pem -out /etc/ssl/private/vsftpd.pem
Generating a 1024 bit RSA private key
……++++++
…….++++++
writing new private key to '/etc/ssl/private/vsftpd.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.
—–
root@www05:/etc/ssl/private# chmod 600 vsftpd.pem
root@www05:/etc/ssl/private#vi /etc/vsftpd.conf
rsa_cert_file=/etc/ssl/private/vsftpd.pem
ssl_enable=YES
allow_anon_ssl=NO
force_local_data_ssl=YES
force_local_logins_ssl=YES
ssl_tlsv1=YES
ssl_sslv2=NO
ssl_sslv3=NO
require_ssl_reuse=NO
ssl_ciphers=HIGH
root@www05:~# service vsftpd restart
Generate a certificate using this syntax:
openssl req -new -x509 -days 365 -nodes -out /etc/proftpd/ssl/proftpd.cert.pem -keyout /etc/proftpd/ssl/proftpd.key.pem
rsa_cert_file=/etc/ssl/private/vsftpd.pem