openSUSE Forums > Network/Internet » vsftp doesn't work with ssl_enable=yes

Go Back   openSUSE Forums > Network/Internet
Forums FAQ Members List Search Today's Posts Mark Forums Read


Network/Internet Questions about internet applications, network configuration, usage (SAMBA, network printing, NFS)

Reply
Page 1 of 2 1 2
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 16-Oct-2009, 15:09
Puzzled Penguin
 
Join Date: Oct 2009
Posts: 7
kerrytec hasn't been rated much yet
Default vsftp doesn't work with ssl_enable=yes

Hello,

I'm trying to get my vsftp server to run.
When ssl is disabled it works pretty fine, but after turning on I get the following error:

Code:
# /etc/init.d/vsftpd status
Checking for service vsftpd                                               unused
# /etc/init.d/vsftpd start
Starting vsftpd startproc:  exit status of parent of /usr/sbin/vsftpd: 1
                                                                          failed
here's my config (/etc/vsftpd.conf):

Code:
write_enable=YES
dirmessage_enable=YES
nopriv_user=ftpsecure
ftpd_banner="Welcome to ..."
local_enable=YES
chroot_local_user=YES
listen=YES
ssl_enable=YES
pasv_min_port=30000
pasv_max_port=30100
/var/log/messages and /var/log/warn don't say anything about vsftp and /var/log/rcvsftp is empty.

Has anybody an idea what the problem could be?
May the firewall/ports have sth to with it?

Thanks for help.
Reply With Quote
  #2 (permalink)  
Old 16-Oct-2009, 17:03
Explorer Penguin
 
Join Date: Dec 2008
Location: Hamburg
Posts: 165
erikro hasn't been rated much yet
Default Re: vsftp doesn't work with ssl_enable=yes

Hi,

you should tell your server where the cert file is. A line like this

Code:
rsa_cert_file=/etc/vsftpd/vsftpd.pem
is missing. For more information look here:

Configuring vsftpd for secure connections (TLS/SSL/SFTP - VPSLink Wiki)

hth

Erik
Reply With Quote
  #3 (permalink)  
Old 17-Oct-2009, 01:58
Puzzled Penguin
 
Join Date: Oct 2009
Posts: 7
kerrytec hasn't been rated much yet
Default Re: vsftp doesn't work with ssl_enable=yes

Hey,

Thanks for the advice. I'll give it a try when I'm back at home tomorrow.

regards
Reply With Quote
  #4 (permalink)  
Old 17-Oct-2009, 08:14
Puzzled Penguin
 
Join Date: Oct 2009
Posts: 7
kerrytec hasn't been rated much yet
Default Re: vsftp doesn't work with ssl_enable=yes

I've created a certificate as it is described in the guide but unfortunately it doesn't fix the problem.
I get the same error like before.
Any other ideas?

Thanks
Reply With Quote
  #5 (permalink)  
Old 17-Oct-2009, 09:14
Explorer Penguin
 
Join Date: Dec 2008
Location: Hamburg
Posts: 165
erikro hasn't been rated much yet
Default Re: vsftp doesn't work with ssl_enable=yes

Hi,

did you also add the missing line in the config file?

Bye

Erik
Reply With Quote
  #6 (permalink)  
Old 17-Oct-2009, 09:32
Puzzled Penguin
 
Join Date: Oct 2009
Posts: 7
kerrytec hasn't been rated much yet
Default Re: vsftp doesn't work with ssl_enable=yes

Hi Erik,

Yes I did. I've checked everything twice. Even I knew that it was senseless, I've generated the certificate a second time...

My vsftpd.conf looks like this now:

Code:
write_enable=YES
dirmessage_enable=YES
nopriv_user=ftpsecure
ftpd_banner="Welcome to ..."
local_enable=YES
chroot_local_user=YES
listen=YES
ssl_enable=YES
allow_anon_ssl=NO
force_local_data_ssl=NO
force_local_logins_ssl=YES
ssl_tlsv1=YES
ssl_sslv2=NO
ssl_sslv3=NO
rsa_cert_file=/etc/vsftpd/vsftpd.pem
pasv_min_port=30000
pasv_max_port=30100
Thanks for your efforts!
Reply With Quote
  #7 (permalink)  
Old 17-Oct-2009, 13:29
Explorer Penguin
 
Join Date: Dec 2008
Location: Hamburg
Posts: 165
erikro hasn't been rated much yet
Default Re: vsftp doesn't work with ssl_enable=yes

Hi,

please type

Code:
vsftpd
and post the output here. Do it as root.

Bye

Erik
Reply With Quote
  #8 (permalink)  
Old 17-Oct-2009, 13:34
Explorer Penguin
 
Join Date: Dec 2008
Location: Hamburg
Posts: 165
erikro hasn't been rated much yet
Default Re: vsftp doesn't work with ssl_enable=yes

Hi again,

I was a bit confusing I think. I like you NOT to use the startscript but the command vsftpd itself. So you should type the command with another working dir than /etc/init.d to be sure to call the daemon itself since your start script seems to have also the name vsftpd.

Bye

Erik
Reply With Quote
  #9 (permalink)  
Old 18-Oct-2009, 08:17
Puzzled Penguin
 
Join Date: Oct 2009
Posts: 7
kerrytec hasn't been rated much yet
Default Re: vsftp doesn't work with ssl_enable=yes

Hi Erik,

when I try to execute vsftpd the following Error comes:

Code:
# vsftpd
500 OOPS: SSL: cannot load RSA certificate
When I googled this error I found plenty of sites, but none of these outline my problem.
So have you any idea whats the issue of this error?
Cannot figure out why he can't load it...

Thanks again for your help!
Reply With Quote
  #10 (permalink)  
Old 18-Oct-2009, 08:34
Explorer Penguin
 
Join Date: Dec 2008
Location: Hamburg
Posts: 165
erikro hasn't been rated much yet
Default Re: vsftp doesn't work with ssl_enable=yes

Hi,

could be a problem with the file permissions. Type:

Code:
ls -l /etc/vsftpd
and post the result here.

Bye

Erik
Reply With Quote
Reply
Page 1 of 2 1 2

Bookmarks

Tags
ssl, vsftp


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




 

Search Engine Friendly URLs by vBSEO 3.3.0 RC2