Microsoft
Software
Hardware
Network
Question : Settings up vsftpd and ssl?
Hi,
I am trying to set up a ftp server on ubuntu 10.04. I am using vsftpd as ftp server. The following configuration file is used:
listen=YES
anonymous_enable=NO
local_enable=YES
write_enable=YES
dirmessage_enable=YES
use_localtime=YES
xferlog_enable=YES
connect_from_port_20=YES
chroot_local_user=YES
userlist_enable=YES
userlist_deny=NO
userlist_file=/etc/vsftpd.
user_list
secure_chroot_dir=/var/run
/vsftpd/em
pty
ssl_enable=YES
force_local_data_ssl=YES
force_local_logins_ssl=YES
ssl_tlsv1=YES
ssl_sslv2=YES
ssl_sslv3=YES
debug_ssl=YES
pam_service_name=vsftpd
rsa_cert_file=/etc/ssl/cer
t/my-ftp-c
ert.pem
When setting ssl_enable=YES then I cannot start my server. When trying to start I get no error message. Neither If run with init script as bellow:
sudo /etc/init.d/vsftpd start
[sudo] password for user1:
Rather than invoking init scripts through /etc/init.d, use the service(8)
utility, e.g. service vsftpd start
Since the script you are attempting to invoke has been converted to an
Upstart job, you may also use the start(8) utility, e.g. start vsftpd
vsftpd start/pre-start, process 5498
or with upstart:
sudo service vsftpd start
vsftpd start/pre-start, process 5543
If I then run ps -aux | grep vsftpd I get nothing.
In the syslog I get the following message:
May 18 19:05:46 PC init: vsftpd main process (5572) terminated with status 1
May 18 19:05:46 PC init: vsftpd respawning too fast, stopped
May 18 19:06:25 PC wpa_supplicant[3548]: WPS-AP-AVAILABLE
If I try to run sudo /usr/sbin/vsftpd I get:
500 OOPS: SSL: cannot load RSA certificate
I have tryed a number of tutorials to generate the ssl certificate. One that I have tried is this:
openssl req -new -newkey rsa:2048 -days 365 -nodes -x509 -keyout server.key -out server.crt
cat server.key server.crt > /etc/vsftpd/server.pem
But nothing works. Any ides?
Answer : Settings up vsftpd and ssl?
I pushed the submit button to fast. What I was saying was that I changed the path for the pem file and now I it works. I must have srewed up the file name.
Random Solutions
Php logical problem: How to solve "cannot redeclare class" problem?
sort a crystal 2008 report based on a running total
Cannot use IP address to get into the web page
How do I manually sort a gridview with template fields when it is bound in code beside? (VB.Net)
write into an app.config
Filter on ResultSet
best drupal6 contact form module for anonymour users
Supplied parameter sid is in use.
installed SMTP Service - screwed up my IIS webserver !!
Javascript question on populating required field