<?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>StarBlog &#187; server</title>
	<atom:link href="http://my.stargazer.at/tag/server/feed/" rel="self" type="application/rss+xml" />
	<link>http://my.stargazer.at</link>
	<description>my two cents on life - including taxes and duties...</description>
	<lastBuildDate>Fri, 30 Jul 2010 19:51:27 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1-alpha</generator>
<cloud domain='my.stargazer.at' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
		<item>
		<title>Doing iSCSI targets on ZFS</title>
		<link>http://my.stargazer.at/2010/01/07/doing-iscsi-targets-on-zfs/</link>
		<comments>http://my.stargazer.at/2010/01/07/doing-iscsi-targets-on-zfs/#comments</comments>
		<pubDate>Thu, 07 Jan 2010 06:51:48 +0000</pubDate>
		<dc:creator>Stargazer</dc:creator>
				<category><![CDATA[IT Related stuff]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[solaris]]></category>
		<category><![CDATA[zfs]]></category>

		<guid isPermaLink="false">http://my.stargazer.at/?p=1056</guid>
		<description><![CDATA[As ZFS did quite well here &#8211; even after messing around with disks, I decided to give it another try. This time I am out to use its features on other systems. But to do so, I need to share it. As I am running virtual machines, it would be nice to have iSCSI shares [...]]]></description>
			<content:encoded><![CDATA[<p>As ZFS did quite well here &#8211; even after messing around with disks, I decided to give it another try. This time I am out to use its features on other systems. But to do so, I need to share it. As I am running virtual machines, it would be nice to have iSCSI shares to (ab)use. So let&#8217;s do it by starting the service:</p>
<blockquote><p># svcadm enable iscsitgt</p></blockquote>
<p><span id="more-1056"></span>As my Solaris install is still quite fresh I got a spare disk in it. It should carry my iscsi pool which I will just call &#8216;iscsistore&#8217;. Keeping it on a separate disk allows me to export it independently. So here we go:</p>
<blockquote><p># zpool create iscsistore c0t1d0</p></blockquote>
<p>If you think that I have to mess around with dd now to write containers, you&#8217;re wrong. ZFS does this for us elegantly:</p>
<blockquote><p># zfs create -s -V 10gb iscsistore/zvol</p></blockquote>
<p>Now the iSCSI shares:</p>
<blockquote><p># zfs set shareiscsi=on iscsistore/zvol</p></blockquote>
<p>We check:</p>
<blockquote><p># iscsitadm list target -v</p></blockquote>
<p>And that&#8217;s it. We&#8217;re ready to roll. Simple and easy. Simply ZFS.</p>
<hr /><small>Copyright &copy; 2010<br />Please note that this feed is for private use only. All other usage, including the distribution or reproduction of multiple copies, performance or otherwise use in a public way of the images or text require the authorization of the author.<br />(digitalfingerprint: 0f46ca51d0fa4e6588e24f0bf2b80fed)</small>]]></content:encoded>
			<wfw:commentRss>http://my.stargazer.at/2010/01/07/doing-iscsi-targets-on-zfs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Let&#8217;s get active</title>
		<link>http://my.stargazer.at/2009/11/28/lets-get-active/</link>
		<comments>http://my.stargazer.at/2009/11/28/lets-get-active/#comments</comments>
		<pubDate>Sat, 28 Nov 2009 11:52:46 +0000</pubDate>
		<dc:creator>Stargazer</dc:creator>
				<category><![CDATA[IT Related stuff]]></category>
		<category><![CDATA[cacert]]></category>
		<category><![CDATA[mail]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[server]]></category>

		<guid isPermaLink="false">http://my.stargazer.at/?p=1045</guid>
		<description><![CDATA[Today is a wonderful day, the Linux Day in Dornbirn &#8211; the place to gather my CAcert points to become an active assurer for the Web of Trust. As it was possible to take the assurer test on site &#8211; god bless the inventor of wireless lan &#8211; I could start to assure people immediately [...]]]></description>
			<content:encoded><![CDATA[<p>Today is a wonderful day, the <a href="http://www.linuxday.at">Linux Day</a> in Dornbirn &#8211; the place to gather my <a href="http://www.cacert.org">CAcert</a> points to become an active assurer for the Web of Trust.</p>
<p>As it was possible to take the assurer test on site &#8211; god bless the inventor of wireless lan &#8211; I could start to assure people immediately and gain the first &#8216;Administrative Points&#8217; which enables me to distribute 15 points at once by now.</p>
<p><strong>Update:</strong> At the end of the day I could already grant 25 points.</p>
<hr /><small>Copyright &copy; 2010<br />Please note that this feed is for private use only. All other usage, including the distribution or reproduction of multiple copies, performance or otherwise use in a public way of the images or text require the authorization of the author.<br />(digitalfingerprint: 0f46ca51d0fa4e6588e24f0bf2b80fed)</small>]]></content:encoded>
			<wfw:commentRss>http://my.stargazer.at/2009/11/28/lets-get-active/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Now with new Certificates</title>
		<link>http://my.stargazer.at/2009/10/21/now-with-new-certificates/</link>
		<comments>http://my.stargazer.at/2009/10/21/now-with-new-certificates/#comments</comments>
		<pubDate>Wed, 21 Oct 2009 21:00:44 +0000</pubDate>
		<dc:creator>Stargazer</dc:creator>
				<category><![CDATA[IT Related stuff]]></category>
		<category><![CDATA[mail]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[server]]></category>

		<guid isPermaLink="false">http://my.stargazer.at/?p=1023</guid>
		<description><![CDATA[It shouldn&#8217;t be a new topic to secure your data while sending it across public lines like the internet. This usually happens using server certificates, which are made once and never touched again &#8211; if self signed. In my case I wanted to do it better and got me a certificate from CACert.org. At least [...]]]></description>
			<content:encoded><![CDATA[<p>It shouldn&#8217;t be a new topic to secure your data while sending it across public lines like the internet. This usually happens using server certificates, which are made once and never touched again &#8211; if self signed. In my case I wanted to do it better and got me a certificate from <a href="https://www.cacert.org">CACert.org</a>. At least it is a good exercise to do before changing to a big and expensive one.</p>
<p><span id="more-1023"></span>The procedure itself isn&#8217;t something new &#8211; the only difference is that you don&#8217;t sign the certificate yourself. We start (as usual) with a certificate request:</p>
<blockquote><p>openssl req -nodes -new -keyout server.key -out server.csr</p></blockquote>
<p>This request &#8211; filed so server.csr is now passed on to CACert, who now generates and signs the certificate for us. Using it on our server isn&#8217;t a big deal as long as our clients got the root certificate to validate it. If they don&#8217;t, it is very easy to get it:</p>
<blockquote><p>wget -nv https://www.cacert.org/certs/root.crt -O /etc/ssl/certs/CAcert.org_Root_Certificate.pem</p></blockquote>
<p>The rest is pretty straight forward. Here is an example for doing it with postfix:</p>
<blockquote><p># TLS PART START<br />
smtp_tls_CAfile = /etc/postfix/tls/root.crt<br />
smtp_tls_cert_file = /etc/postfix/tls/server.pem<br />
smtp_tls_key_file = /etc/postfix/tls/key.pem<br />
smtp_tls_session_cache_database = btree:$data_directory/smtp_tls_session_cache<br />
smtp_use_tls = yes</p>
<p>smtpd_tls_CAfile = /etc/postfix/tls/root.crt<br />
smtpd_tls_cert_file = /etc/postfix/tls/server.pem<br />
smtpd_tls_key_file = /etc/postfix/tls/key.pem<br />
smtpd_tls_session_cache_database = btree:$data_directory/smtpd_tls_session_cache<br />
smtpd_use_tls = yes</p>
<p>smtpd_tls_received_header = yes<br />
smtpd_tls_ask_ccert = yes<br />
smtpd_tls_loglevel = 1</p>
<p>tls_random_source = dev:/dev/urandom<br />
# TLS PART END</p></blockquote>
<p>After doing a reload, we can proceed to the test which has been passed by my system already. As anything is set up and shouldn&#8217;t need to be changed until a new certificate comes in, I&#8217;m done and so I sit there saying &#8216;safe paths&#8217; to my files passing by.</p>
<hr /><small>Copyright &copy; 2010<br />Please note that this feed is for private use only. All other usage, including the distribution or reproduction of multiple copies, performance or otherwise use in a public way of the images or text require the authorization of the author.<br />(digitalfingerprint: 0f46ca51d0fa4e6588e24f0bf2b80fed)</small>]]></content:encoded>
			<wfw:commentRss>http://my.stargazer.at/2009/10/21/now-with-new-certificates/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Alternatives to Nagios</title>
		<link>http://my.stargazer.at/2009/05/25/alternatives-to-nagios/</link>
		<comments>http://my.stargazer.at/2009/05/25/alternatives-to-nagios/#comments</comments>
		<pubDate>Mon, 25 May 2009 03:59:34 +0000</pubDate>
		<dc:creator>Stargazer</dc:creator>
				<category><![CDATA[IT Related stuff]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://my.stargazer.at/?p=958</guid>
		<description><![CDATA[Knowledge about the things happening on hosts and network is essential to a system administrator. That&#8217;s why they usually install a bunch of software tools to get the required informations from their systems. Nagios is one of the most infamous programs to do so. It monitors your machines and sends out alerts to the appropriate [...]]]></description>
			<content:encoded><![CDATA[<p>Knowledge about the things happening on hosts and network is essential to a system administrator. That&#8217;s why they usually install a bunch of software tools to get the required informations from their systems. <a href="http://www.nagios.org">Nagios</a> is one of the most infamous programs to do so. It monitors your machines and sends out alerts to the appropriate administrator. The disadvantages of Nagios are its configuration and the lack of long time monitoring functions.</p>
<p><span id="more-958"></span>Regarding long term statistics, you might be stumbled across the <a href="http://oss.oetiker.ch/rrdtool/">RRD Tool</a> or <a href="http://oss.oetiker.ch/mrtg/">MRTG</a>. But as configuration is quite complicated, a nice front end named <a href="http://www.cacti.org">Cacti</a> even does auto detection&#8230;</p>
<p>As I did some hardware maintenance I was forced to do my internal server from scratch which was a good start to search for good monitoring solutions. So I started looking around and came across <a href="http://www.groundworkopensource.com">Groundwork Monitor</a> and some other Nagios Front-Ends until I finally found <a href="http://www.zenoss.com">Zenoss</a> which looked like a suitable alternative &#8211; but the installation failed due to their outdated build tools they&#8217;d require. </p>
<p>As I was not really successful in fixing those numerous bugs in the installation routine I went on and found <a href="http://www.zabbix.com">Zabbix</a> &#8211; a tool that claims to be the perfect solution if you can trust their homepage. There was even an outdated ebuild in portage which needed some love. I did an updated version and put it in my overlay &#8211; so the installation wasn&#8217;t a problem and I could start with the configuration, which happened via Web interface which looked quite complicated at the first glance. But once you got the logic, it is straight forward and simple.</p>
<p>For monitoring remote machines, Zabbix offers Agents which are even available for Windows and Apple. But nevertheless you can use SNMP and Shell scripts to get things done. So if you&#8217;d ask me, Zabbix is a really powerful solution. It even uses less resources than my previous nagios / cacti solution.</p>
<hr /><small>Copyright &copy; 2010<br />Please note that this feed is for private use only. All other usage, including the distribution or reproduction of multiple copies, performance or otherwise use in a public way of the images or text require the authorization of the author.<br />(digitalfingerprint: 0f46ca51d0fa4e6588e24f0bf2b80fed)</small>]]></content:encoded>
			<wfw:commentRss>http://my.stargazer.at/2009/05/25/alternatives-to-nagios/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Internet Explorer and Network shares</title>
		<link>http://my.stargazer.at/2009/05/12/internet-explorer-and-network-shares/</link>
		<comments>http://my.stargazer.at/2009/05/12/internet-explorer-and-network-shares/#comments</comments>
		<pubDate>Tue, 12 May 2009 10:34:44 +0000</pubDate>
		<dc:creator>Stargazer</dc:creator>
				<category><![CDATA[IT Related stuff]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[tip]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://my.stargazer.at/?p=955</guid>
		<description><![CDATA[Last post I have ranted about apple doing crap, but to be honest, it isn&#8217;t really better on windows &#8211; it&#8217;s just different problems like being unable to execute a binary file from a network drive. As the error message stated &#8216;Permission denied&#8217;, I started with checking the permissions of the network share and files. [...]]]></description>
			<content:encoded><![CDATA[<p>Last post I have ranted about apple doing crap, but to be honest, it isn&#8217;t really better on windows &#8211; it&#8217;s just different problems like being unable to execute a binary file from a network drive. As the error message stated &#8216;Permission denied&#8217;, I started with checking the permissions of the network share and files.</p>
<p><span id="more-955"></span>For keeping it simple, I usually use &#8216;Full access&#8217; for network shares for everybody, restricting anything on the file system layer which usually does the trick. My permission set is regarding the file might be restrictive, but it is fine. Copying the file to a local drive proofs, that the file isn&#8217;t damaged.</p>
<p>As I run out for ideas I was doing something else until an idea suddenly became manifested. The Internet Explorer, a core system component of windows is even used for browsing files. Its restrictions might be the cause for my troubles. Proofing this shouldn&#8217;t be hard at all.</p>
<p>After updating to the newest version (which should be IE8 at point of writing) I just did a &#8216;factory reset&#8217; of all the permissions resetting them to their defaults, which suddenly granted me the permission to execute files from the LAN.</p>
<hr /><small>Copyright &copy; 2010<br />Please note that this feed is for private use only. All other usage, including the distribution or reproduction of multiple copies, performance or otherwise use in a public way of the images or text require the authorization of the author.<br />(digitalfingerprint: 0f46ca51d0fa4e6588e24f0bf2b80fed)</small>]]></content:encoded>
			<wfw:commentRss>http://my.stargazer.at/2009/05/12/internet-explorer-and-network-shares/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Windfall</title>
		<link>http://my.stargazer.at/2009/05/12/windfall/</link>
		<comments>http://my.stargazer.at/2009/05/12/windfall/#comments</comments>
		<pubDate>Tue, 12 May 2009 09:30:07 +0000</pubDate>
		<dc:creator>Stargazer</dc:creator>
				<category><![CDATA[IT Related stuff]]></category>
		<category><![CDATA[apple]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://my.stargazer.at/?p=954</guid>
		<description><![CDATA[Today I have really started thinking about apple computers again due to the latest incident. This time we&#8217;re talking about windows shares in a cooperated network, called smb or samba shares in combination with an active directory. The task itself shouldn&#8217;t be that hard as it was just accessing a windows share on a remote [...]]]></description>
			<content:encoded><![CDATA[<p>Today I have really started thinking about apple computers again due to the latest incident. This time we&#8217;re talking about windows shares in a cooperated network, called smb or samba shares in combination with an active directory. The task itself shouldn&#8217;t be that hard as it was just accessing a windows share on a remote server &#8211; but that&#8217;s where the story begins. Things didn&#8217;t work as expected.</p>
<p><span id="more-954"></span>As I&#8217;m used to Linux systems, my first click was firing up the Console windows for accessing the bash shell. As the problem is smb related, it&#8217;s something the kernel might know something about. For accessing the kernel log, I used &#8216;dmesg&#8217;, which showed us the following error message: </p>
<blockquote><p><code>smb_smb_negotiate: server configuration requires packet signing, which we dont support<br />
mount_smbfs: error from NetrShareEnum call: exception = 382312522<br />
smbfs_smb_qfsattr: (fyi) share 'NTFS', attr 0x700ff, maxfilename 255<br />
smbfs_aclsflunksniff: group sid S-1-5-21-2788770225-3767355608-264476496-513 didnt map<br />
</code></p></blockquote>
<p>The problem so far: Windows does packet signing for preventing a security breach with its network shares. Searching for a solution, I have stumbled about the newest OSX version which would be one option to handle the problem as disabling packet signing would degrade network security at the whole network. From my point of view, apple security looks more and more like a myth to me.</p>
<hr /><small>Copyright &copy; 2010<br />Please note that this feed is for private use only. All other usage, including the distribution or reproduction of multiple copies, performance or otherwise use in a public way of the images or text require the authorization of the author.<br />(digitalfingerprint: 0f46ca51d0fa4e6588e24f0bf2b80fed)</small>]]></content:encoded>
			<wfw:commentRss>http://my.stargazer.at/2009/05/12/windfall/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Moving the server machines</title>
		<link>http://my.stargazer.at/2009/04/28/moving-the-server-machines/</link>
		<comments>http://my.stargazer.at/2009/04/28/moving-the-server-machines/#comments</comments>
		<pubDate>Tue, 28 Apr 2009 13:22:37 +0000</pubDate>
		<dc:creator>Stargazer</dc:creator>
				<category><![CDATA[IT Related stuff]]></category>
		<category><![CDATA[life]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[status]]></category>

		<guid isPermaLink="false">http://my.stargazer.at/?p=938</guid>
		<description><![CDATA[Due to the fact that I am moving to the new flat, my servers will be offline for a couple of hours starting tomorrow afternoon (GMT+1). I&#8217;ll post here as soon as I know anything new before we&#8217;ll go down for hopefully not more than three hours. Update &#8211; 2009-04-29: It is not a big [...]]]></description>
			<content:encoded><![CDATA[<p>Due to the fact that I am moving to the new flat, my servers will be offline for a couple of hours starting tomorrow afternoon (GMT+1). I&#8217;ll post here as soon as I know anything new before we&#8217;ll go down for hopefully not more than three hours.</p>
<p><strong>Update &#8211; 2009-04-29:</strong> It is not a big surprise for me, but the new line to be is still dead and it looks like the telekom service didn&#8217;t finish it correctly. So the move is still pending. Worst case scenario would be being offline for a week or two&#8230; </p>
<p><strong>Update &#8211; 2009-04-30:</strong> If it&#8217;s not the provider or the telekom causing troubles, it&#8217;s the 	charlady causing troubles by unplugging the server rack for using the power plug. Systems are up again, but still at the old location. Sorry for the inconvenience.</p>
<p><strong>Update &#8211; 2009-05-04:</strong> Today our Telekom announced that a technical guy will come round looking at the problem to (hopefully) solve it. Just to be sure, I got me an SDSL Modem to be able to check their work afterwards without taking my servers down&#8230;</p>
<p><strong>Update &#8211; 2009-05-07:</strong> Just before we all gave up, a miracle happened: the modem started connecting and my ISP could finally start configuring it for the final testing. To be honest, we&#8217;re suspecting the telekom guy has forgotten to remove the testing plug at the other end of the line &#8211; but who knows.</p>
<p><strong>Update &#8211; 2009-05-12:</strong> After some line tests and preparations the server move happened today. All systems are now up and running in their new home.</p>
<hr /><small>Copyright &copy; 2010<br />Please note that this feed is for private use only. All other usage, including the distribution or reproduction of multiple copies, performance or otherwise use in a public way of the images or text require the authorization of the author.<br />(digitalfingerprint: 0f46ca51d0fa4e6588e24f0bf2b80fed)</small>]]></content:encoded>
			<wfw:commentRss>http://my.stargazer.at/2009/04/28/moving-the-server-machines/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Enough joking</title>
		<link>http://my.stargazer.at/2009/01/30/enough-joking/</link>
		<comments>http://my.stargazer.at/2009/01/30/enough-joking/#comments</comments>
		<pubDate>Fri, 30 Jan 2009 21:24:08 +0000</pubDate>
		<dc:creator>Stargazer</dc:creator>
				<category><![CDATA[IT Related stuff]]></category>
		<category><![CDATA[gentoo]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[server]]></category>

		<guid isPermaLink="false">http://my.stargazer.at/?p=909</guid>
		<description><![CDATA[As the title says, I&#8217;m getting serious about my server boxes &#8211; no more software raid, no more running all that websites using the same user, no more kidding. As the new mailserver is already productive, the second IBM x345. As already told in the post dealing with the new server, it was no big [...]]]></description>
			<content:encoded><![CDATA[<p>As the title says, I&#8217;m getting serious about my server boxes &#8211; no more software raid, no more running all that websites using the same user, no more kidding. As the <a href="http://my.stargazer.at/2009/01/19/a-new-mta/">new mailserver</a> is already productive, the second IBM x345.</p>
<p>As already told in the post dealing with the new server, it was no big deal doing the setup as it&#8217;s good hardware. No quirks, no hacking &#8211; just straight forward.</p>
<hr /><small>Copyright &copy; 2010<br />Please note that this feed is for private use only. All other usage, including the distribution or reproduction of multiple copies, performance or otherwise use in a public way of the images or text require the authorization of the author.<br />(digitalfingerprint: 0f46ca51d0fa4e6588e24f0bf2b80fed)</small>]]></content:encoded>
			<wfw:commentRss>http://my.stargazer.at/2009/01/30/enough-joking/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>eBay blues</title>
		<link>http://my.stargazer.at/2008/10/20/ebay-blues/</link>
		<comments>http://my.stargazer.at/2008/10/20/ebay-blues/#comments</comments>
		<pubDate>Mon, 20 Oct 2008 10:56:26 +0000</pubDate>
		<dc:creator>Stargazer</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[ebay]]></category>
		<category><![CDATA[server]]></category>

		<guid isPermaLink="false">http://my.stargazer.at/?p=858</guid>
		<description><![CDATA[I guess you know the typical eBay ads on TV, showing happy people cheering about their purchase. But what about reality? Who talks about the people who missed an item or were overbid by some software tool, which is against the TOS of ebay. But I don&#8217;t want to destroy any illusions, do I? Honestly, [...]]]></description>
			<content:encoded><![CDATA[<p>I guess you know the typical eBay ads on TV, showing happy people cheering about their purchase. But what about reality? Who talks about the people who missed an item or were overbid by some software tool, which is against the TOS of ebay. But I don&#8217;t want to destroy any illusions, do I?</p>
<p><span id="more-858"></span>Honestly, I do. This article here should be a small report of my attempt to get an old IBM Server for my rack. To keep the price low, I usually don&#8217;t place a bid if the auction time left is greater than 1 minute, hoping to get the server for a reasonable price.</p>
<p>Last week I watched 30 Server. 25 of them even had a reasonable price and I could place my bid. Regarding those 25 bids, I was successful in 22 cases. But I wasn&#8217;t lucky at all: I have lost every box during the last 3 to 5 seconds. Missed it for 50 Cent to 1 EUR.</p>
<p>In other words I didn&#8217;t get a single box.</p>
<hr /><small>Copyright &copy; 2010<br />Please note that this feed is for private use only. All other usage, including the distribution or reproduction of multiple copies, performance or otherwise use in a public way of the images or text require the authorization of the author.<br />(digitalfingerprint: 0f46ca51d0fa4e6588e24f0bf2b80fed)</small>]]></content:encoded>
			<wfw:commentRss>http://my.stargazer.at/2008/10/20/ebay-blues/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
		<item>
		<title>Apache and OpenSSL</title>
		<link>http://my.stargazer.at/2008/06/17/apache-and-openssl/</link>
		<comments>http://my.stargazer.at/2008/06/17/apache-and-openssl/#comments</comments>
		<pubDate>Tue, 17 Jun 2008 07:11:54 +0000</pubDate>
		<dc:creator>Stargazer</dc:creator>
				<category><![CDATA[IT Related stuff]]></category>
		<category><![CDATA[ website]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[server]]></category>

		<guid isPermaLink="false">http://my.stargazer.at/?p=699</guid>
		<description><![CDATA[My SSL Certificate for the webserver expired &#8211; so I had to generate a new one, which is a perfect topic to blog about. Regarding SSL Certificates, there are two possibilities: you may buy an official one or you may generate your own. Due to financial reasons, I&#8217;m using the latter method, as it&#8217;s more [...]]]></description>
			<content:encoded><![CDATA[<p>My SSL Certificate for the webserver expired &#8211; so I had to generate a new one, which is a perfect topic to blog about.</p>
<p>Regarding SSL Certificates, there are two possibilities: you may buy an official one or you may generate your own. Due to financial reasons, I&#8217;m using the latter method, as it&#8217;s more or less for private use and not for granting my servers ID. But that&#8217;s enough chit chat &#8211; let&#8217;s go to work:</p>
<p><span id="more-699"></span><br />
<h3>Step 1: The Private Key</h3>
<p>We start by creating our RSA Private Key, which should be a 1024 bit RSA key. Encryption could be Triple-DES. As the key has to be stored in ASCII text, we&#8217;re using the PEM format.</p>
<blockquote><p><code>openssl genrsa -des3 -out server.key 1024</p>
<p>  Generating RSA private key, 1024 bit long modulus<br />
 .........................................................++++++<br />
 ........++++++<br />
 e is 65537 (0x10001)<br />
 Enter PEM pass phrase:<br />
 Verifying password - Enter PEM pass phrase:</code></p></blockquote>
<h3>Step 2: The CSR (Certificate Signing Request)</h3>
<p>A CSR, as the name already says is the request for the certificate, just like an application form used at any bureaucratic process for collecting information from you. Normally you&#8217;d send it to <a href="http://www.verisign.com/">Verisign</a> or <a href="http://www.thawte.com/">Thawte</a> if you want to have an official certificate for your server. But in our case, we&#8217;re processing it ourselves.</p>
<p>While filling in the requested data, you will stumble upon a question like that: &#8220;Common Name (e.g., YOUR name)&#8221;. It is important that you enter the fully qualified domain name of the server to be protected here. If I would run my blog through SSL, it would be &#8216;my.stargazer.at&#8217;.</p>
<blockquote><p><code><br />
openssl req -new -key server.key -out server.csr</p>
<p> Country Name (2 letter code) [AT]:AT<br />
 State or Province Name (full name) [Feldkirch]:Feldkirch<br />
 Locality Name (eg, city) [Nofels]:Nofels<br />
 Organization Name (eg, company) [My Company Ltd]:STARGAZER systems<br />
 Organizational Unit Name (eg, section) []:IT Core services<br />
 Common Name (eg, your name or your server's hostname) []:my.stargazer.at<br />
 Email Address []: *****@******.***<br />
 Please enter the following 'extra' attributes<br />
 to be sent with your certificate request<br />
 A challenge password []:<br />
 An optional company name []:<br />
</code></p></blockquote>
<h3>Step 3: Removing the password</h3>
<p>I know, this might sound strange to you, but this step ensures, that your server is able to start up without user interaction. To understand that, you need to know, that the server key is encrypted by now, which makes it unreadable until you enter a correct passphrase. As we are starting our webserver via init script, we would be prompted for unlocking the key, which denies unattended startups. (We&#8217;re decrypting it)</p>
<blockquote><p><code><br />
cp server.key server.key.org<br />
openssl rsa -in server.key.org -out server.key<br />
</code></p></blockquote>
<h3>Step 4: Generating the Certificate</h3>
<p>Now we&#8217;re generating the certificate. Regarding validity, we are using one year. After that time, we&#8217;ll be doing the same procedure again ;)</p>
<blockquote><p><code>openssl x509 -req -days 365 -in server.csr -signkey server.key -out server.crt<br />
 Signature ok<br />
 subject=/C=AT/ST=Feldkirch/L=Nofels/O=STARGAZER systems/OU=IT Core services/CN=my.stargazer.at/Email=*****@******.***<br />
 Getting Private key</code></p></blockquote>
<h3>Step 5: Making use of the Certificate</h3>
<p>By now our important files server.crt and server.key are ready for use. So let&#8217;s clean up the mess we have made before and copy the new files to a safe place. Yes, I am talking about backups. The configuration of the webserver itself shouldn&#8217;t be that hard. For my apache webserver, I&#8217;m extending my configuration that way:</p>
<blockquote><p><code>SSLEngine on<br />
 SSLCertificateFile /etc/apache2/ssl/ssl.crt/server.crt<br />
 SSLCertificateKeyFile /etc/apache2/ssl/ssl.key/server.key<br />
 SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown<br />
 CustomLog logs/ssl_request_log \<br />
    "%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"</code></p></blockquote>
<h3>Step 6: Restarting Apache</h3>
<p>Finally we have to restart our webserver to apply the changes and we are ready for our first test run.</p>
<hr /><small>Copyright &copy; 2010<br />Please note that this feed is for private use only. All other usage, including the distribution or reproduction of multiple copies, performance or otherwise use in a public way of the images or text require the authorization of the author.<br />(digitalfingerprint: 0f46ca51d0fa4e6588e24f0bf2b80fed)</small>]]></content:encoded>
			<wfw:commentRss>http://my.stargazer.at/2008/06/17/apache-and-openssl/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
