Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section FTP Server
  • Search

SSL on vsftpd

Questions regarding the FTP Server
vsFTPd, ProFTPd
Post Reply
  • Print view
Advanced search
10 posts • Page 1 of 1
max.m
Posts: 2
Joined: Sun Nov 05, 2017 2:57 pm

SSL on vsftpd
  • Quote

Post by max.m » Sun Nov 05, 2017 3:07 pm

Hi there, i have trouble on ssl activation for vsftpd on fresh vestacp install over centos 7.0
this is my config:

Code: Select all

anonymous_enable=NO
local_enable=YES
write_enable=YES
local_umask=022
anon_umask=022
anon_upload_enable=NO
dirmessage_enable=YES
xferlog_enable=YES
dual_log_enable=YES
connect_from_port_20=YES
xferlog_std_format=YES
chroot_local_user=YES
allow_writeable_chroot=YES
listen=YES
#listen_ipv6=YES
pam_service_name=vsftpd
userlist_enable=YES
tcp_wrappers=YES
force_dot_files=YES
ascii_upload_enable=YES
ascii_download_enable=YES
pasv_enable=YES
pasv_max_port=12100
pasv_min_port=12000
use_localtime=YES
####SSL
ssl_enable=YES
allow_anon_ssl=NO
force_local_data_ssl=YES
force_local_logins_ssl=YES
ssl_tlsv1=YES
ssl_tlsv2=NO
ssl_tlsv3=NO
require_ssl_reuse=NO
ssl_ciphers=HIGHT
rsa_cert_file=/etc/ssl/private/vsftpd.pem
rsa_private_key_file=/etc/ssl/private/vsftpd.pem
Only add code after comment ssl. but whe i try to restart vsftpd not start. Error:

Code: Select all

 vsftpd.service - Vsftpd ftp daemon
   Loaded: loaded (/usr/lib/systemd/system/vsftpd.service; enabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since dom 2017-11-05 16:05:29 CET; 16s ago
  Process: 10806 ExecStart=/usr/sbin/vsftpd /etc/vsftpd/vsftpd.conf (code=exited, status=2)
 Main PID: 5586 (code=killed, signal=TERM)

Starting Vsftpd ftp daemon...
 vsftpd.service: control process exited, code=exited status=2
 Failed to start Vsftpd ftp daemon.
 Unit vsftpd.service entered failed state.
vsftpd.service failed.
suggestions?

thanks
Top

max.m
Posts: 2
Joined: Sun Nov 05, 2017 2:57 pm

Re: SSL on vsftpd
  • Quote

Post by max.m » Sun Nov 05, 2017 3:31 pm

Find a typo in ssl_ciphers=HIGH
but nothing new happend.. :-(
Top

BartMan__X
Posts: 13
Joined: Tue Jan 16, 2018 2:58 am

Os: CentOS 6x
Web: apache + nginx
Re: SSL on vsftpd
  • Quote

Post by BartMan__X » Wed Aug 15, 2018 3:16 pm

and this is what i like about this Forum.... no answer....
Top

ScIT
Support team
Posts: 617
Joined: Mon Feb 23, 2015 4:13 pm

Os: Ubuntu 17x
Web: apache + nginx
Re: SSL on vsftpd
  • Quote

Post by ScIT » Thu Aug 16, 2018 3:42 pm

BartMan__X wrote: ↑
Wed Aug 15, 2018 3:16 pm
and this is what i like about this Forum.... no answer....
answer on what? a year old post?

SSL Configuration is quit easy, it's just vsftpd standard: https://www.liquidweb.com/kb/configure-vsftpd-ssl/
Top

mlopez
Posts: 21
Joined: Mon Nov 05, 2018 7:26 am
Contact:
Contact mlopez
Website Twitter

Os: CentOS 6x
Web: apache + nginx
Re: SSL on vsftpd
  • Quote

Post by mlopez » Wed May 15, 2019 6:59 am

This is what I add to my vsFTP config file /etc/vsftpd/vsftpd.conf:

Code: Select all

#
# SSL Options
#
ssl_enable=YES
allow_anon_ssl=NO
force_local_data_ssl=YES
force_local_logins_ssl=YES
ssl_tlsv1_1=YES
ssl_tlsv1_2=YES
ssl_tlsv1=NO
ssl_sslv2=NO
ssl_sslv3=NO
require_ssl_reuse=YES
ssl_ciphers=HIGH
rsa_cert_file=/usr/local/vesta/ssl/certificate.crt
rsa_private_key_file=/usr/local/vesta/ssl/certificate.key
Note that I used the path of the self-signed certificate, so when connecting to the server a warning message is displayed. This would be used for all domains, that's why the warning message appears because it was issued for the main domain of the server, not for all of the domains hosted on it.

Hope it would help.

Regards!
Top

deeprus
Posts: 2
Joined: Mon Apr 09, 2018 2:07 pm

Os: Debian 8x
Web: apache + nginx
Re: SSL on vsftpd
  • Quote

Post by deeprus » Fri May 24, 2019 9:09 am

Hello.

Just installed new VPS on Debian 9.9 (stretch).
vsftpd version is 3.0.3

Now I'm trying to set up a secure connection for the vsftpd. After adding these two parameters to the configuration file

Code: Select all

ssl_tlsv1_1=YES
ssl_tlsv1_2=YES
my vsftpd server cannot start.
I get the following errors when checking the configuration:

Code: Select all

#vsftpd
500 OOPS: unrecognised variable in config file: ssl_tlsv1_1
500 OOPS: unrecognised variable in config file: ssl_tlsv1_2
Therefore, my vsftpd only starts working when I delete these parameters or comment them out.
Now my configuration is as follows:

Code: Select all

#ssl_tlsv1_1=YES
#ssl_tlsv1_2=YES
ssl_tlsv1=YES
I could not find the description of the ssl_tlsv1_1 and ssl_tlsv1_2 parameters in the man pages or official documentation (https://security.appspot.com/vsftpd/vsftpd_conf.html).
Could you please tell me where these parameters come from and what version of vsftpd are they for?
Top

skamasle
Collaborator
Posts: 592
Joined: Mon Feb 29, 2016 6:36 pm

Re: SSL on vsftpd
  • Quote

Post by skamasle » Thu Jun 20, 2019 11:53 am

Some body post guide where: viewtopic.php?f=44&t=18559
Top

salvatorenz
Posts: 8
Joined: Mon Jun 10, 2019 4:38 am

Os: CentOS 6x
Web: apache + nginx
Re: SSL on vsftpd
  • Quote

Post by salvatorenz » Fri Jun 28, 2019 2:39 am

I use this on Centos 7 and have no issues.

#SSL
ssl_enable=YES
allow_anon_ssl=NO
force_local_data_ssl=YES
force_local_logins_ssl=YES
ssl_tlsv1_1=NO
ssl_tlsv1_2=YES
ssl_tlsv1=NO
ssl_sslv2=NO
ssl_sslv3=NO
require_ssl_reuse=YES
ssl_ciphers=EECDH+AESGCM:EDH+AESGCM
rsa_cert_file=/usr/local/vesta/ssl/certificate.crt
rsa_private_key_file=/usr/local/vesta/ssl/certificate.key

Also use the above ssl ciphers for email, nginx etc. maybe a couple of rules need changing but passes pci compliance test
Top

Bubblecatcher
Posts: 37
Joined: Tue Mar 06, 2018 8:38 am

Os: Debian 8x
Web: apache
Re: SSL on vsftpd
  • Quote

Post by Bubblecatcher » Tue Feb 25, 2020 10:48 am

After some digging as i had this issue i found that in debian 9 using vsftpd 3.0.3-8+b1 the following settings are reductant, they are part of a RHL patch which do not work in debian version.

Code: Select all

#ssl_tlsv1_1=YES
#ssl_tlsv1_2=YES

If you remove them and set the following vsftpd will restart.

Code: Select all

ssl_ciphers=TLSv1.2
#Options: SSLv3, TLSv1.0, TLSv1.2, HIGH (see man ciphers)
ssl_ciphers=TLSv1.2
Top

lotric
Posts: 6
Joined: Sun Feb 14, 2021 6:37 pm

Os: Debian 8x
Web: apache
Re: SSL on vsftpd
  • Quote

Post by lotric » Tue Mar 09, 2021 4:46 pm

try all variants no result
same error

Code: Select all

ssl_enable=YES 
allow_anon_ssl=NO 
force_local_data_ssl=YES 
force_local_logins_ssl=YES 
ssl_ciphers=TLSv1.2 
ssl_tlsv1=NO 
ssl_sslv2=NO 
ssl_sslv3=NO 
require_ssl_reuse=YES 
ssl_ciphers=HIGH
listen_port=1000
Top


Post Reply
  • Print view

10 posts • Page 1 of 1

Return to “FTP Server”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password