Vsftpd Over SSL/TLS2013/05/10 |
Enable SSL/TLS on Vsftpd.
|
|
[1] | Configure for SSL/TLS. |
root@www:~# cd /etc/ssl/private root@www:/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
root@www:/etc/ssl/private# ......++++++ .......++++++ 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. ----- Country Name (2 letter code) [AU]: JP # country State or Province Name (full name) [Some-State]: Hiroshima # state Locality Name (eg, city) []: Hiroshima # city Organization Name (eg, company) [Internet Widgits Pty Ltd]: GTS # company Organizational Unit Name (eg, section) []: Server World # department Common Name (eg, YOUR name) []: www.srv.world # server's FQDN Email Address []: xxx@srv.world # email address chmod 400 vsftpd.pem
root@www:/etc/ssl/private#
vi /etc/vsftpd.conf
rsa_cert_file=/etc/ssl/private/vsftpd.pem
root@www:/etc/ssl/private# # add at the last
ssl_enable=YES # enable SSL force_local_data_ssl=YES # require SSL connection force_local_logins_ssl=YES # require SSL connection /etc/init.d/vsftpd restart Stopping FTP server: vsftpd. Starting FTP server: vsftpd. |
[2] | Configure on client PC. Start WinSCP and select "SSL Explicit Encryption" on session info like follows. |
[3] | Following waring is shown because certificate is originally created, but it's no ploblem. Go next. |
[4] | Input your password. |
[5] | Just connected. |
Sponsored Link |