Linux Tutorials Others

Setup SSL Certificate For VSFTPD in CentOS 7 / RHEL 7

main_image_vsftpd_ssl

Create self-signed certificates for vsftpd

goto

cd /etc/pki/tls/certs

guess_linux_vsftpd_ssl10

run the following command

openssl req -x509 -nodes -newkey rsa:2048 -keyout vsftpd_ssl.pem -out vsftpd_ssl.pem -days 365

guess_linux_vsftpd_ssl11

provide all the detail asked by openssl for generation of self signed ssl certificate

guess_linux_vsftpd_ssl4

change the file permission

chmod 400 vsftpd_ssl.pem

guess_linux_vsftpd_ssl5

Configure Vsftpd for ssl

vi /etc/vsftpd/vsftpd.conf

guess_linux_vsftpd_ssl6

pasv_enable=YES
pasv_min_port=21000
pasv_max_port=21010
rsa_cert_file=/etc/pki/tls/certs/vsftpd_ssl.pem
ssl_enable=YES
ssl_ciphers=HIGH
ssl_tlsv1=YES
ssl_sslv2=NO
ssl_sslv3=NO
force_local_data_ssl=YES
force_local_logins_ssl=YES

guess_linux_vsftpd_ssl7

finally restart your vsftpd server

systemctl restart vsftpd

guess_linux_vsftpd_ssl8

Testing

open any FTP client i am using filezilla here

guess_linux_vsftpd_ssl9 guess_linux_vsftpd_ssl1 guess_linux_vsftpd_ssl2

Thank You

 

Leave a Comment