<?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>fabiolagana.net &#187; SSL</title>
	<atom:link href="http://blog.fabiolagana.net/category/linux/ssl/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.fabiolagana.net</link>
	<description>640 Kb should be enough memory for anybody</description>
	<lastBuildDate>Mon, 26 Oct 2009 13:17:04 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Creating an SSL-certificate for my webserver</title>
		<link>http://blog.fabiolagana.net/creating-ssl-certificate-webserver/</link>
		<comments>http://blog.fabiolagana.net/creating-ssl-certificate-webserver/#comments</comments>
		<pubDate>Wed, 12 Nov 2008 10:13:39 +0000</pubDate>
		<dc:creator>Fabio Laganà</dc:creator>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[SSL]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[certificates]]></category>
		<category><![CDATA[Howto]]></category>
		<category><![CDATA[webserver]]></category>

		<guid isPermaLink="false">http://blog.fabiolagana.net/?p=107</guid>
		<description><![CDATA[


&#160;Powered by Max Banner Ads&#160;
#!/bin/sh
SERVER=ssl.mioserverweb.dominio
PRIVATE_KEY=$SERVER.private.key
CERTIFICATE_FILE=$SERVER.crt
VALID_DAYS=365
&#160;
echo Delete old private key
rm $PRIVATE_KEY
echo Create new private/public-keys without passphrase for server
openssl genrsa -out $PRIVATE_KEY 2048
&#160;
echo Create selfsigned certificate
rm $CERTIFICATE_FILE
# From man req:
#  -x509
#    this option outputs a self signed certificate instead
#    of a certificate request. This is typically used to
#   [...]]]></description>
			<content:encoded><![CDATA[
<div class="wp_codebox"><table><tr id="p1072"><td class="code" id="p107code2"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#!/bin/sh</span>
<span style="color: #007800;">SERVER</span>=ssl.mioserverweb.dominio
<span style="color: #007800;">PRIVATE_KEY</span>=<span style="color: #007800;">$SERVER</span>.private.key
<span style="color: #007800;">CERTIFICATE_FILE</span>=<span style="color: #007800;">$SERVER</span>.crt
<span style="color: #007800;">VALID_DAYS</span>=365
&nbsp;
<span style="color: #7a0874; font-weight: bold;">echo</span> Delete old private key
<span style="color: #c20cb9; font-weight: bold;">rm</span> <span style="color: #007800;">$PRIVATE_KEY</span>
<span style="color: #7a0874; font-weight: bold;">echo</span> Create new private<span style="color: #000000; font-weight: bold;">/</span>public-keys without passphrase <span style="color: #000000; font-weight: bold;">for</span> server
openssl genrsa <span style="color: #660033;">-out</span> <span style="color: #007800;">$PRIVATE_KEY</span> 2048
&nbsp;
<span style="color: #7a0874; font-weight: bold;">echo</span> Create selfsigned certificate
<span style="color: #c20cb9; font-weight: bold;">rm</span> <span style="color: #007800;">$CERTIFICATE_FILE</span>
<span style="color: #666666; font-style: italic;"># From man req:</span>
<span style="color: #666666; font-style: italic;">#  -x509</span>
<span style="color: #666666; font-style: italic;">#    this option outputs a self signed certificate instead</span>
<span style="color: #666666; font-style: italic;">#    of a certificate request. This is typically used to</span>
<span style="color: #666666; font-style: italic;">#    generate a test certificate or a self signed root CA.</span>
<span style="color: #666666; font-style: italic;">#    The extensions added to the certificate (if any) are</span>
<span style="color: #666666; font-style: italic;">#    specified in the configuration file.</span>
&nbsp;
openssl req <span style="color: #660033;">-new</span> 
        <span style="color: #660033;">-days</span> <span style="color: #007800;">$VALID_DAYS</span> 
        <span style="color: #660033;">-key</span> <span style="color: #007800;">$PRIVATE_KEY</span> 
        <span style="color: #660033;">-x509</span> 
        <span style="color: #660033;">-out</span> <span style="color: #007800;">$CERTIFICATE_FILE</span>
&nbsp;
<span style="color: #7a0874; font-weight: bold;">echo</span> private-keyfile is <span style="color: #007800;">$PRIVATE_KEY</span>
<span style="color: #7a0874; font-weight: bold;">echo</span> server-certificate-file is <span style="color: #007800;">$CERTIFICATE_FILE</span>
&nbsp;
<span style="color: #c20cb9; font-weight: bold;">ls</span> <span style="color: #660033;">-l</span> <span style="color: #007800;">$PRIVATE_KEY</span> <span style="color: #007800;">$CERTIFICATE_FILE</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://blog.fabiolagana.net/creating-ssl-certificate-webserver/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Update Expired SSL Certs</title>
		<link>http://blog.fabiolagana.net/update-expired-ssl-certs/</link>
		<comments>http://blog.fabiolagana.net/update-expired-ssl-certs/#comments</comments>
		<pubDate>Wed, 29 Oct 2008 11:17:06 +0000</pubDate>
		<dc:creator>Fabio Laganà</dc:creator>
				<category><![CDATA[SSL]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[certificats]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://blog.fabiolagana.net/?p=98</guid>
		<description><![CDATA[
- Farsi una copia del vecchio certificato
cd /etc/ssl/certs
cp -ap pop3ss.pem pop3s.pem.scaduto
&#160;
- Ricreazione nuovo certificato
cd /etc/ssl
openssl req -new -x509 -nodes -days 3650 -newkey rsa:1024 -keyout private/pop3s.key -out pop3s.cert
touch certs/pop3s-new.pem
chmod 600 certs/pop3s-new.pem
cat private/pop3s.key pop3s.cert &#62; certs/pop3s-new.pem
dd if=/dev/urandom count=2 &#124; openssl dhparam -rand - 512
pico certs/pop3s-new.pem
chown vpopmail certs/pop3s-new.pem
cd certs
mv pop3s-new.pem pop3s.pem
&#160;
-- rollback in caso qualcosa andasse storto --
mv [...]]]></description>
			<content:encoded><![CDATA[
<div class="wp_codebox"><table><tr id="p984"><td class="code" id="p98code4"><pre class="bash" style="font-family:monospace;">- Farsi una copia del vecchio certificato
<span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>ssl<span style="color: #000000; font-weight: bold;">/</span>certs
<span style="color: #c20cb9; font-weight: bold;">cp</span> <span style="color: #660033;">-ap</span> pop3ss.pem pop3s.pem.scaduto
&nbsp;
- Ricreazione nuovo certificato
<span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>ssl
openssl req <span style="color: #660033;">-new</span> <span style="color: #660033;">-x509</span> <span style="color: #660033;">-nodes</span> <span style="color: #660033;">-days</span> 3650 <span style="color: #660033;">-newkey</span> rsa:1024 <span style="color: #660033;">-keyout</span> private<span style="color: #000000; font-weight: bold;">/</span>pop3s.key <span style="color: #660033;">-out</span> pop3s.cert
<span style="color: #c20cb9; font-weight: bold;">touch</span> certs<span style="color: #000000; font-weight: bold;">/</span>pop3s-new.pem
<span style="color: #c20cb9; font-weight: bold;">chmod</span> 600 certs<span style="color: #000000; font-weight: bold;">/</span>pop3s-new.pem
<span style="color: #c20cb9; font-weight: bold;">cat</span> private<span style="color: #000000; font-weight: bold;">/</span>pop3s.key pop3s.cert <span style="color: #000000; font-weight: bold;">&gt;</span> certs<span style="color: #000000; font-weight: bold;">/</span>pop3s-new.pem
<span style="color: #c20cb9; font-weight: bold;">dd</span> <span style="color: #000000; font-weight: bold;">if</span>=<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>urandom <span style="color: #007800;">count</span>=2 <span style="color: #000000; font-weight: bold;">|</span> openssl dhparam <span style="color: #660033;">-rand</span> - 512
pico certs<span style="color: #000000; font-weight: bold;">/</span>pop3s-new.pem
<span style="color: #c20cb9; font-weight: bold;">chown</span> vpopmail certs<span style="color: #000000; font-weight: bold;">/</span>pop3s-new.pem
<span style="color: #7a0874; font-weight: bold;">cd</span> certs
<span style="color: #c20cb9; font-weight: bold;">mv</span> pop3s-new.pem pop3s.pem
&nbsp;
<span style="color: #660033;">--</span> rollback <span style="color: #000000; font-weight: bold;">in</span> caso qualcosa andasse storto <span style="color: #660033;">--</span>
<span style="color: #c20cb9; font-weight: bold;">mv</span> pop3s.pem.scaduto pop3s.pem</pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://blog.fabiolagana.net/update-expired-ssl-certs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->