VsFtpd + OpenSSL
1. Make the right directories
mkdir /etc/ssl
mkdir /etc/ssl/certs
2. Once that is done run the following command.
cd /etc/ssl/certs
openssl req -x509 -nodes -days 7300 -newkey rsa:2048 \
-keyout /etc/ssl/certs/vsftpd.pem -out /etc/ssl/certs/vsftpd.pem
fill out all the details that are required.
3. Edit the vsftpd.conf to use the ssl key you just made.
vi /etc/vsftpd/vsftpd.conf
vsftpd.conf:
| ssl_enable=YES #allow_anon_ssl=NO #force_local_data_ssl=NO force_local_logins_ssl=YES ssl_tlsv1=YES ssl_sslv2=YES ssl_sslv3=YES rsa_cert_file=/etc/ssl/certs/vsftpd.pem |
4. Start the FTP server
Service vsftpd start

浙公网安备 33010602011771号