<?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>Crafting software&#187; ssl</title>
	<atom:link href="http://davidlaing.com/tag/ssl/feed/" rel="self" type="application/rss+xml" />
	<link>http://davidlaing.com</link>
	<description>David Laing&#039;s thoughts on software development</description>
	<lastBuildDate>Wed, 01 Feb 2012 11:02:25 +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>Self Cert SSL certificate for Apache2 on Ubuntu 8.04LTS</title>
		<link>http://davidlaing.com/2008/12/27/self-cert-ssl-certificate-for-apache2-on-ubuntu-804lts/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=self-cert-ssl-certificate-for-apache2-on-ubuntu-804lts</link>
		<comments>http://davidlaing.com/2008/12/27/self-cert-ssl-certificate-for-apache2-on-ubuntu-804lts/#comments</comments>
		<pubDate>Sat, 27 Dec 2008 00:42:02 +0000</pubDate>
		<dc:creator>mrdavidlaing</dc:creator>
				<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[ssl]]></category>

		<guid isPermaLink="false">http://davidlaing.com/?p=136</guid>
		<description><![CDATA[Generate a self cert certificate: https://help.ubuntu.com/8.04/serverguide/C/certificates-and-security.html Create a new virtual host (you can only have one SSL virtual host / IP) sudo cp /etc/apache2/sites-available/default /etc/apache2/sites-available/ssl Edit ssl sothat it looks like this: NameVirtualHost *:443 ServerName webangle-www1.everyangle.co.uk ServerAdmin webmaster@localhost DocumentRoot /var/www/ SSLEngine on SSLOptions +StrictRequire SSLCertificateFile /etc/ssl/certs/server.crt SSLCertificateKeyFile /etc/ssl/private/server.key Finally, if you want to force redirect [...]]]></description>
			<content:encoded><![CDATA[<p>Generate a self cert certificate:</p>
<p><a href="https://help.ubuntu.com/8.04/serverguide/C/certificates-and-security.html">https://help.ubuntu.com/8.04/serverguide/C/certificates-and-security.html</a></p>
<p>Create a new virtual host (you can only have one SSL virtual host / IP)</p>
<pre>sudo cp /etc/apache2/sites-available/default /etc/apache2/sites-available/ssl</pre>
<p>Edit ssl sothat it looks like this:<br />
<code>NameVirtualHost *:443</p>
<p>        ServerName webangle-www1.everyangle.co.uk<br />
        ServerAdmin webmaster@localhost</p>
<p>        DocumentRoot /var/www/</p>
<p>        SSLEngine on</p>
<p>        SSLOptions +StrictRequire</p>
<p>        SSLCertificateFile /etc/ssl/certs/server.crt<br />
        SSLCertificateKeyFile /etc/ssl/private/server.key<br />
</code></p>
<p>Finally, if you want to force redirect of all traffic to a certain folder via SSL (e.g, /phpmyadmin), add the following to /etc/apache2/sites-available/default</p>
<pre>
#Redirect traffic to /phpmyadmin through https
        RewriteEngine   on
        RewriteCond     %{SERVER_PORT} ^80$
        RewriteRule     ^/phpmyadmin(.*)$ https://%{SERVER_NAME}/phpmyadmin$1 [L,R]
</pre>
<p>Enable it:</p>
<pre>sudo a2ensite ssl
sudo /etc/init.d/apache2 reload
</pre>
]]></content:encoded>
			<wfw:commentRss>http://davidlaing.com/2008/12/27/self-cert-ssl-certificate-for-apache2-on-ubuntu-804lts/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

