Setting up vsFTPd to use SSL on FreeBSD

Notes: FreeBSD 9.1 / vsFTPD 3.0.2  / using a CA certificate

1) Ensure both private key and certificate are located in .pem. I named this vsftpd.pem

 

2) Edit the the vsftpd.conf file

# vi /usr/local/etc/vsftpd.conf

### PASV FTP 
pasv_enable=YES
pasv_min_port=49152
pasv_max_port=65535
port_enable=YES
ssl_enable=YES
### SSL STUFF
allow_anon_ssl=NO
force_local_data_ssl=NO
force_local_logins_ssl=NO
ssl_tlsv1=YES
ssl_sslv2=NO
ssl_sslv3=NO
rsa_cert_file=/usr/local/etc/vsftpd.pem

 

3) restart vsFTPd

# service vsftpd restart