Add new comment

Want to support HowtoForge? Become a subscriber!
Submitted by SpeedY GonzaleS (registered user) on Mon, 2009-06-22 21:58.

There´s no need to recompile, TLS is supported in the apt-get package for Debian.

Instructions:

1) To support SSL/TLS, the OpenSSL library must already be installed on your system. This is a common requirement so your operating system probably already ships with it, but you never now

apt-get install openssl

2) Now you need an SSL Certificate, you can buy one from a certified authority or you can create your own certificate. To create a self-signed certificate, you can use the following commands :

mkdir -p /etc/ssl/private

openssl req -x509 -nodes -newkey rsa:1024 -keyout \
  /etc/ssl/private/pure-ftpd.pem \
  -out /etc/ssl/private/pure-ftpd.pem

chmod 600 /etc/ssl/private/*.pem

3) Now we add TLS support in the configuration files

echo 1 > /etc/pure-ftpd/conf/TLS

4) Finally we restart the daemon, the output should look like this:

/etc/init.d/pure-ftpd-mysql restart
Restarting ftp server: Running: /usr/sbin/pure-ftpd-mysql -l mysql:/etc/pure-ftpd/db/mysql.conf -l pam -j -Y 1 -A -E -O clf:/var/log/pure-ftpd/transfer.log -u 1000 -B

(the -Y option enables the TLS Support)

5) If everything worked fine , now we have a TLS capable pure-ftpd server. When some client connects to the server trough TLS you should see something like this in the log files:

Jun 22 17:35:48 console pure-ftpd: (?@192.168.251.4) [INFO] SSL/TLS: Enabled TLSv1/SSLv3 with AES256-SHA, 256 secret bits cipher

 

Hope this helps!

BTW: the guide was great, everything worked fine from scratch! :-)

Please do not use the comment function to ask for help! If you need help, please use our forum.
Comments will be published after administrator approval.

Reply

*
*
The content of this field is kept private and will not be shown publicly.


*

  • Images can be added to this post.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <img> <div>
  • Lines and paragraphs break automatically.