How To Configure vsftpd to use SSL/TLS on an Ubuntu 14.10

Atlantic.Net NOC
by (77posts) under Cloud Hosting
0 Comments

Introduction

FTP (file transfer protocol) is a popular way to transfer files between your computer and a remote computer.

In this article, we will install and configure vsftpd to use SSL certificates on an Ubuntu 14.10.

Prerequisites

VSFTPD installed (https://www.atlantic.net/community/howto/install-vsftpd-ubuntu-vps)

Configuring SSL with VSFTPD in Ubuntu

First, we will make the directory where the SSL certificate keys will be stored.

mkdir /etc/ssl/certificates

Next, we will create the 2048 encryption key that will last for 365 days.

openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout /etc/ssl/certificates/vsftpd.pem -out /etc/ssl/certificates/vsftpd.pem

After creating the key, we will need to change some parameters in the default vsftpd configuration file. I will be using nano command again for the text editor.

nano /etc/vsftpd.conf

You will be editing the path for the rsa_cert_file and rsa_private_key and adding some others to the bottom of this file. The file should look like this at the bottom afterward:

rsa_cert_file=/etc/ssl/certificates/vsftpd.pem rsa_private_key_file=/etc/ssl/certificates/vsftpd.pem ssl_enable=YES allow_anon_ssl=NO force_local_data_ssl=YES force_local_logins_ssl=YES ssl_tlsv1=YES ssl_sslv2=NO ssl_sslv3=NO require_ssl_reuse=NO ssl_ciphers=HIGH

Save and close the file. Restart vsftpd with the command below:

service vsftpd restart

Now we can connect to server using SSL/TLS encryption with Filezilla.

Open Filezilla, Go to File>Site Manager. Click on New Site. Make sure to choose “Require explicit FTP over TLS” for the Encryption type.

Sample Filezilla Site manager

Filezilla Site manager

 

Once you click on connect, you will be prompted with the window below to accept the unknown certificate.

Certificate Warning

Certificate Warning

Now you are connected to your server with SSL/TLS encryption!


Related Posts

New York, NY

100 Delawanna Ave, Suite 1

Clifton, NJ 07014

United States

Dallas, TX

2323 Bryan Street,

Dallas, Texas 75201

United States

San Francisco, CA

2820 Northwestern Pkwy,

Santa Clara, CA 95051

United States

Orlando, FL

440 W Kennedy Blvd, Suite 3

Orlando, FL 32810

United States

London, UK

14 Liverpool Road, Slough,

Berkshire SL1 4QZ

United Kingdom

Toronto, Canada

20 Pullman Ct, Scarborough,

Ontario M1X 1E4

Canada