Fedora 14
Sponsored Link

Vsftpd Over SSL/TLS2010/11/07

  Enable SSL/TLS on Vsftpd.

[1] Config for SSL/TLS
[root@www03 ~]#
cd /etc/pki/tls/certs

[root@www03 certs]#
openssl req -x509 -nodes -newkey rsa:1024 -keyout /etc/pki/tls/certs/vsftpd.pem -out /etc/pki/tls/certs/vsftpd.pem

Generating a 1024 bit RSA private key
writing new private key to '/etc/pki/tls/certs/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]:
# country

State or Province Name (full name) [Some-State]:
# state

Locality Name (eg, city) []:
# city

Organization Name (eg, company) [Internet Widgits Pty Ltd]:
Server World
# company

Organizational Unit Name (eg, section) []:
IT Solution
# department

Common Name (eg, YOUR name) []:
# server's FQDN

Email Address []:
# email address

[root@www03 certs]#
chmod 600 vsftpd.pem

[root@www03 certs]#
vi /etc/vsftpd/vsftpd.conf

# add at the last line

# enable SSL

# require SSL connection

# require SSL connection

[root@www03 certs]#
/etc/rc.d/init.d/vsftpd restart

Shutting down vsftpd:   [  OK  ]
Starting vsftpd for vsftpd:   [  OK  ]
[2] Configure on client PC. Use FileZilla that has a function of connecting trough SSL/TLS. Open 'File'-'Site Manager' and input login info, and select 'TLS/SSL' in 'Server Type'.
[3] Following waring is shown because certificate is originally created, but it's no ploblem. Go next.
[4] Just connected.
Matched Content