<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Racker Hacker &#187; vsftpd</title>
	<atom:link href="http://rackerhacker.com/tag/vsftpd/feed/" rel="self" type="application/rss+xml" />
	<link>http://rackerhacker.com</link>
	<description>Words of wisdom from a server administrator</description>
	<lastBuildDate>Wed, 16 May 2012 12:55:04 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Adding SSL encryption to vsftpd</title>
		<link>http://rackerhacker.com/2007/11/26/adding-ssl-encryption-to-vsftpd/</link>
		<comments>http://rackerhacker.com/2007/11/26/adding-ssl-encryption-to-vsftpd/#comments</comments>
		<pubDate>Mon, 26 Nov 2007 18:21:54 +0000</pubDate>
		<dc:creator>Major Hayden</dc:creator>
				<category><![CDATA[Blog Posts]]></category>
		<category><![CDATA[ftp]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[ssl]]></category>
		<category><![CDATA[vsftpd]]></category>

		<guid isPermaLink="false">http://rackerhacker.com/2007/11/26/adding-ssl-encryption-to-vsftpd/</guid>
		<description><![CDATA[There may be some situations where you want to encrypt FTP traffic with SSL certificates rather than using SFTP with SSH. Using vsftpd with SSL encryption is quite easy, and here's how it's done: First, you'll need to make a new self-signed SSL certificate (if you don't have a key and certificate available already): openssl [...]<p><a href="http://rackerhacker.com/2007/11/26/adding-ssl-encryption-to-vsftpd/">Adding SSL encryption to vsftpd</a> is a post from: Major Hayden's <a href="http://rackerhacker.com">Racker Hacker</a> blog. 
<p>Thanks for following the blog via the RSS feed. Please don't copy my posts or quote portions of them without attribution.</p></p>
]]></description>
			<content:encoded><![CDATA[<p>There may be some situations where you want to encrypt FTP traffic with SSL certificates rather than using SFTP with SSH.  Using vsftpd with SSL encryption is quite easy, and here's how it's done:</p>
<p>First, you'll need to <a href="http://rackerhacker.com/2007/08/02/generate-self-signed-certificate-and-key-in-one-line/">make a new self-signed SSL certificate</a> (if you don't have a key and certificate available already):</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">openssl req -new -newkey rsa:1024 -days 365 -nodes -x509 -keyout server.key -out server.crt</pre></div></div>

<p>Once you have the key and certificate made, you'll need to concatenate them into a PEM file:</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;"># cat server.key &gt; /etc/vsftpd/server.pem
# cat server.crt &gt;&gt; /etc/vsftpd/server.pem</pre></div></div>

<p>Now, simply adjust the vsftpd configuration file to enable SSL encryption:</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">ssl_enable=YES
force_local_data_ssl=NO
force_local_logins_ssl=NO
ssl_tlsv1=YES
ssl_sslv2=NO
ssl_sslv3=YES
rsa_cert_file=/etc/vsftpd/server.pem</pre></div></div>

<p>Once that's complete, restart vsftpd and you will be able to connect to your FTP server using SSL/TLS encryption.</p>
<p>Further Reading:<br />
<a href="http://vsftpd.beasts.org/vsftpd_conf.html">Manpage of vsftpd.conf</a></p>
<p><a href="http://rackerhacker.com/2007/11/26/adding-ssl-encryption-to-vsftpd/">Adding SSL encryption to vsftpd</a> is a post from: Major Hayden's <a href="http://rackerhacker.com">Racker Hacker</a> blog. 
<p>Thanks for following the blog via the RSS feed. Please don't copy my posts or quote portions of them without attribution.</p></p>
]]></content:encoded>
			<wfw:commentRss>http://rackerhacker.com/2007/11/26/adding-ssl-encryption-to-vsftpd/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>

