thehenrys.net

January 15, 2008

CentOS 5 + vsftpd + TLS/SSL

Filed under: Server Admin — dh @ 2:06 am

cd /etc/pki/tls/certs
make vsftpd.pem
cat /etc/pki/tls/certs/vsftpd.pem
openssl x509 -in /etc/pki/tls/certs/vsftpd.pem -noout -text
chmod 600 /etc/pki/tls/certs/vsftpd.pem
vi /etc/vsftpd/vsftpd.conf

[add to file]
# custom ssl config
listen_port=990
ssl_enable=YES
allow_anon_ssl=NO
force_local_data_ssl=NO
force_local_logins_ssl=YES
ssl_tlsv1=YES
ssl_sslv2=NO
ssl_sslv3=NO
rsa_cert_file=/etc/pki/tls/certs/vsftpd.pem

[/add to file]

/etc/init.d/vsftpd restart

done! 🙂

More info: http://www.brennan.id.au/14-FTP_Server.html#secure

Leave a Reply