<?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>rob aldred &#187; osx</title>
	<atom:link href="http://robaldred.co.uk/tag/osx/feed/" rel="self" type="application/rss+xml" />
	<link>http://robaldred.co.uk</link>
	<description>cars, f1, bikes, tech tips &#38; what ever i&#039;m interested in this week</description>
	<lastBuildDate>Thu, 15 Apr 2010 13:54:51 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Mac OSX TerminalColors not loaded error with Terminal version 2.1.1 (v273)</title>
		<link>http://robaldred.co.uk/2010/04/mac-osx-terminalcolors-not-loaded-error-with-terminal-version-2-1-1-v273/</link>
		<comments>http://robaldred.co.uk/2010/04/mac-osx-terminalcolors-not-loaded-error-with-terminal-version-2-1-1-v273/#comments</comments>
		<pubDate>Tue, 13 Apr 2010 09:24:45 +0000</pubDate>
		<dc:creator>Rob</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[osx]]></category>
		<category><![CDATA[TerminalColors]]></category>

		<guid isPermaLink="false">http://robaldred.co.uk/?p=199</guid>
		<description><![CDATA[With the recent update to OSX Snow Leopard if your&#8217;re using the TerminalColors SIMBL plugin you may notice you&#8217;ll have an error when loading your Terminal. This is easily fixable, by modifiying the Info.plist in the plugin to check for a higher version. cd ~/Library/Application\ Support/SIMBL/Plugins/TerminalColours.bundle/Contents open Info.plist in your favourite editor find the following [...]]]></description>
			<content:encoded><![CDATA[<p>With the recent update to OSX Snow Leopard if your&#8217;re using the TerminalColors SIMBL plugin you may notice you&#8217;ll have an error when loading your Terminal.</p>
<p>This is easily fixable, by modifiying the Info.plist in the plugin to check for a higher version.</p>
<div class="codecolorer-container bash twitlight" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #7a0874; font-weight: bold;">cd</span> ~<span style="color: #000000; font-weight: bold;">/</span>Library<span style="color: #000000; font-weight: bold;">/</span>Application\ Support<span style="color: #000000; font-weight: bold;">/</span>SIMBL<span style="color: #000000; font-weight: bold;">/</span>Plugins<span style="color: #000000; font-weight: bold;">/</span>TerminalColours.bundle<span style="color: #000000; font-weight: bold;">/</span>Contents</div></div>
<p>open Info.plist in your favourite editor find the following lines:</p>
<div class="codecolorer-container bash twitlight" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>28<br />29<br />30<br />31<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000000; font-weight: bold;">&lt;</span>key<span style="color: #000000; font-weight: bold;">&gt;</span>MaxBundleVersion<span style="color: #000000; font-weight: bold;">&lt;/</span>key<span style="color: #000000; font-weight: bold;">&gt;</span><br />
<span style="color: #000000; font-weight: bold;">&lt;</span>string<span style="color: #000000; font-weight: bold;">&gt;</span><span style="color: #000000;">272</span><span style="color: #000000; font-weight: bold;">&lt;/</span>string<span style="color: #000000; font-weight: bold;">&gt;</span><br />
<span style="color: #000000; font-weight: bold;">&lt;</span>key<span style="color: #000000; font-weight: bold;">&gt;</span>MinBundleVersion<span style="color: #000000; font-weight: bold;">&lt;/</span>key<span style="color: #000000; font-weight: bold;">&gt;</span><br />
<span style="color: #000000; font-weight: bold;">&lt;</span>string<span style="color: #000000; font-weight: bold;">&gt;</span><span style="color: #000000;">240</span><span style="color: #000000; font-weight: bold;">&lt;/</span>string<span style="color: #000000; font-weight: bold;">&gt;</span></div></td></tr></tbody></table></div>
<p>change the <string> 272 to 273<br />
save the file, close your Terminal.app completely (Cmd+Q)</p>
<p>Start Terminal again and everything should be back to normal.</p>
]]></content:encoded>
			<wfw:commentRss>http://robaldred.co.uk/2010/04/mac-osx-terminalcolors-not-loaded-error-with-terminal-version-2-1-1-v273/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Add https (ssl) support to your osx mac development machine with signed certificate</title>
		<link>http://robaldred.co.uk/2009/11/adding-httpsssl-support-to-your-apache-mod_ssl-development-osx-mac-machine/</link>
		<comments>http://robaldred.co.uk/2009/11/adding-httpsssl-support-to-your-apache-mod_ssl-development-osx-mac-machine/#comments</comments>
		<pubDate>Sat, 14 Nov 2009 15:07:31 +0000</pubDate>
		<dc:creator>Rob</dc:creator>
				<category><![CDATA[Mac Tips]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[Apple]]></category>
		<category><![CDATA[authority]]></category>
		<category><![CDATA[certificate]]></category>
		<category><![CDATA[https]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[mod_ssl]]></category>
		<category><![CDATA[openssl]]></category>
		<category><![CDATA[osx]]></category>
		<category><![CDATA[secure]]></category>
		<category><![CDATA[self-signed]]></category>
		<category><![CDATA[ssl]]></category>

		<guid isPermaLink="false">http://robaldred.co.uk/?p=138</guid>
		<description><![CDATA[It became apparent that getting mod_ssl working correctly without browser warnings when developing sites that take payments is a bit of pain. Mainly because there is no free way to have a root authority sign your Certificate Signing Request (CSR). There is how ever a short cut, given that you are using Apache, mod_ssl, openssl [...]]]></description>
			<content:encoded><![CDATA[<p>It became apparent that getting mod_ssl working correctly without browser warnings when developing sites that take payments is a bit of pain. Mainly because there is no free way to have a root authority sign your Certificate Signing Request (CSR).</p>
<p>There is how ever a short cut, given that you are using Apache, mod_ssl, openssl and Firefox.</p>
<p>We&#8217;re going to generate our own Certificate Authority (CA), this is CA is only going to work for us so if your generating a certificate for production, you&#8217;ll need to send your CSR to a proper CA such as VeriSign</p>
<p>Step1, Make a temporary folder we can work in.</p>
<div class="codecolorer-container bash twitlight" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #7a0874; font-weight: bold;">cd</span> ~<span style="color: #000000; font-weight: bold;">/</span>Desktop<span style="color: #000000; font-weight: bold;">/</span>ssltemp</div></div>
<p>Step2, generate our private key</p>
<div class="codecolorer-container bash twitlight" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">openssl genrsa <span style="color: #660033;">-des3</span> <span style="color: #660033;">-out</span> server.key <span style="color: #000000;">1024</span></div></div>
<p>You will be asked for a passphrase in the creation of this key. (just use 12345) or anything but<em>do not forget this passphrase!</em> You’ll have to do this all over if you forget the passphrase. You will need this passphrase later on in the process.</p>
<p>Step3, generate a CSR from our private  key</p>
<div class="codecolorer-container bash twitlight" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">openssl req <span style="color: #660033;">-new</span> <span style="color: #660033;">-key</span> server.key <span style="color: #660033;">-out</span> server.csr</div></div>
<p>you&#8217;ll be asked for the following information:</p>
<div class="codecolorer-container bash twitlight" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">Country Name <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">2</span> letter code<span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span>AU<span style="color: #7a0874; font-weight: bold;">&#93;</span>: <span style="color: #7a0874; font-weight: bold;">&#40;</span>enter your country code here<span style="color: #7a0874; font-weight: bold;">&#41;</span><br />
State or Province Name <span style="color: #7a0874; font-weight: bold;">&#40;</span>full name<span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span>Some-State<span style="color: #7a0874; font-weight: bold;">&#93;</span>: <span style="color: #7a0874; font-weight: bold;">&#40;</span>Enter your state here<span style="color: #7a0874; font-weight: bold;">&#41;</span><br />
Locality Name <span style="color: #7a0874; font-weight: bold;">&#40;</span>eg, city<span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #7a0874; font-weight: bold;">&#93;</span>: <span style="color: #7a0874; font-weight: bold;">&#40;</span>enter your city here<span style="color: #7a0874; font-weight: bold;">&#41;</span><br />
Organization Name <span style="color: #7a0874; font-weight: bold;">&#40;</span>eg, company<span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span>Internet Widgits Pty Ltd<span style="color: #7a0874; font-weight: bold;">&#93;</span>: <span style="color: #7a0874; font-weight: bold;">&#40;</span>enter something here<span style="color: #7a0874; font-weight: bold;">&#41;</span><br />
Organizational Unit Name <span style="color: #7a0874; font-weight: bold;">&#40;</span>eg, section<span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #7a0874; font-weight: bold;">&#93;</span>: <span style="color: #7a0874; font-weight: bold;">&#40;</span>enter something here<span style="color: #7a0874; font-weight: bold;">&#41;</span><br />
Common Name <span style="color: #7a0874; font-weight: bold;">&#40;</span>eg, YOUR name<span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #7a0874; font-weight: bold;">&#93;</span>: <span style="color: #7a0874; font-weight: bold;">&#40;</span>this is the important one<span style="color: #7a0874; font-weight: bold;">&#41;</span><br />
Email Address <span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #7a0874; font-weight: bold;">&#93;</span>: <span style="color: #7a0874; font-weight: bold;">&#40;</span>your e-mail address<span style="color: #7a0874; font-weight: bold;">&#41;</span></div></div>
<p>Make sure you fill in `Common Name` with your domain you want this certificate for, this should match your apache vhost `ServerName` setting</p>
<p>Now, looking at the directory we&#8217;re working in, you should have the following:</p>
<div class="codecolorer-container bash twitlight" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #7a0874; font-weight: bold;">&#91;</span>rob:~<span style="color: #000000; font-weight: bold;">/</span>Desktop<span style="color: #000000; font-weight: bold;">/</span>ssltemp<span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #c20cb9; font-weight: bold;">ls</span> <span style="color: #660033;">-la</span><br />
total <span style="color: #000000;">12</span><br />
drwxr-xr-x &nbsp; &nbsp;<span style="color: #000000;">5</span> rob &nbsp; &nbsp; &nbsp;staff &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">126</span> Nov <span style="color: #000000;">14</span> <span style="color: #000000;">17</span>:01 .<br />
drwx------ &nbsp; <span style="color: #000000;">38</span> rob &nbsp; &nbsp; &nbsp;staff &nbsp; &nbsp; &nbsp; <span style="color: #000000;">1248</span> Nov <span style="color: #000000;">14</span> <span style="color: #000000;">16</span>:<span style="color: #000000;">57</span> ..<br />
<span style="color: #660033;">-rw-r--r--</span> &nbsp; &nbsp;<span style="color: #000000;">1</span> rob &nbsp; &nbsp; &nbsp;staff &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">729</span> Nov <span style="color: #000000;">14</span> <span style="color: #000000;">17</span>:01 server.csr<br />
<span style="color: #660033;">-rw-r--r--</span> &nbsp; &nbsp;<span style="color: #000000;">1</span> rob &nbsp; &nbsp; &nbsp;staff &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">963</span> Nov <span style="color: #000000;">14</span> <span style="color: #000000;">16</span>:<span style="color: #000000;">59</span> server.key</div></div>
<p>Step4, create the private key for our CA</p>
<div class="codecolorer-container bash twitlight" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">openssl genrsa <span style="color: #660033;">-des3</span> <span style="color: #660033;">-out</span> ca.key <span style="color: #000000;">1024</span></div></div>
<p>Again, you’ll be asked for a passphrase, which, again, you should not forget.</p>
<p>Step5, create CA certificate using the key we just made</p>
<div class="codecolorer-container bash twitlight" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">openssl req <span style="color: #660033;">-new</span> <span style="color: #660033;">-x509</span> <span style="color: #660033;">-days</span> <span style="color: #000000;">365</span> <span style="color: #660033;">-key</span> ca.key <span style="color: #660033;">-out</span> ca.crt</div></div>
<p>You will be asked for similar information you were asked for when we make the web server certificate earlier; this information should be about you, enter something like the following</p>
<div class="codecolorer-container bash twitlight" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">Country Name <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">2</span> letter code<span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span>AU<span style="color: #7a0874; font-weight: bold;">&#93;</span>:GB<br />
State or Province Name <span style="color: #7a0874; font-weight: bold;">&#40;</span>full name<span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span>Some-State<span style="color: #7a0874; font-weight: bold;">&#93;</span>:Cheshire<br />
Locality Name <span style="color: #7a0874; font-weight: bold;">&#40;</span>eg, city<span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #7a0874; font-weight: bold;">&#93;</span>:Stockport<br />
Organization Name <span style="color: #7a0874; font-weight: bold;">&#40;</span>eg, company<span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span>Internet Widgits Pty Ltd<span style="color: #7a0874; font-weight: bold;">&#93;</span>:My CA<br />
Organizational Unit Name <span style="color: #7a0874; font-weight: bold;">&#40;</span>eg, section<span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #7a0874; font-weight: bold;">&#93;</span>:My CA <span style="color: #000000; font-weight: bold;">for</span> Dev<br />
Common Name <span style="color: #7a0874; font-weight: bold;">&#40;</span>eg, YOUR name<span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #7a0874; font-weight: bold;">&#93;</span>:Rob Aldred<br />
Email Address <span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #7a0874; font-weight: bold;">&#93;</span>:raldred<span style="color: #000000; font-weight: bold;">@</span>gmail.com</div></div>
<p>Now you will have 4 files your directory; server.key, server.csr, ca.key, ca.crt<br />
Next is the important park, signing our certificate request.</p>
<p>The easiest way to do this is to use the sign.sh script contained in the mod_ssl source,<br />
or you can get it here: <a href="http://bit.ly/4MtUqX">sign.sh</a><br />
copy the script to the working directory</p>
<p>Step6, make sign.sh executable and sign our CSR</p>
<div class="codecolorer-container bash twitlight" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">chmod</span> +x sign.sh<br />
.<span style="color: #000000; font-weight: bold;">/</span>sign.sh server.csr</div></div>
<p>you should get something like the following:</p>
<div class="codecolorer-container bash twitlight" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">CA signing: server.csr -<span style="color: #000000; font-weight: bold;">&amp;</span>gt; server.crt:<br />
Using configuration from ca.config<br />
Enter PEM pass phrase:<br />
Check that the request matches the signature<br />
Signature ok<br />
The Subjects Distinguished Name is <span style="color: #c20cb9; font-weight: bold;">as</span> follows<br />
countryName &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; :PRINTABLE:<span style="color: #ff0000;">'GB'</span><br />
stateOrProvinceName &nbsp; :PRINTABLE:<span style="color: #ff0000;">'Cheshire'</span><br />
localityName &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:PRINTABLE:<span style="color: #ff0000;">'Stockport'</span><br />
organizationName &nbsp; &nbsp; &nbsp;:PRINTABLE:<span style="color: #ff0000;">'Testing'</span><br />
organizationalUnitName:PRINTABLE:<span style="color: #ff0000;">'Testing'</span><br />
commonName &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:PRINTABLE:<span style="color: #ff0000;">'localhost'</span><br />
emailAddress &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:IA5STRING:<span style="color: #ff0000;">'raldred@gmail.com'</span><br />
Certificate is to be certified <span style="color: #000000; font-weight: bold;">until</span> Nov <span style="color: #000000;">14</span> <span style="color: #000000;">23</span>:09:<span style="color: #000000;">20</span> <span style="color: #000000;">2010</span> GMT <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">365</span> days<span style="color: #7a0874; font-weight: bold;">&#41;</span><br />
Sign the certificate? <span style="color: #7a0874; font-weight: bold;">&#91;</span>y<span style="color: #000000; font-weight: bold;">/</span>n<span style="color: #7a0874; font-weight: bold;">&#93;</span>:y<br />
<br />
<span style="color: #000000;">1</span> out of <span style="color: #000000;">1</span> certificate requests certified, commit? <span style="color: #7a0874; font-weight: bold;">&#91;</span>y<span style="color: #000000; font-weight: bold;">/</span>n<span style="color: #7a0874; font-weight: bold;">&#93;</span>y<br />
Write out database with <span style="color: #000000;">1</span> new entries<br />
Data Base Updated<br />
CA verifying: server.crt <span style="color: #000000; font-weight: bold;">&amp;</span>lt;-<span style="color: #000000; font-weight: bold;">&amp;</span>gt; CA cert<br />
server.crt: OK</div></div>
<p>Answer &#8216;y&#8217; to the question asking to Sign the certificate [y/n]</p>
<p>Step7, remove password requirement from server key</p>
<div class="codecolorer-container bash twitlight" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">cp</span> server.key server.key.original<br />
openssl rsa <span style="color: #660033;">-in</span> server.key.original <span style="color: #660033;">-out</span> server.key</div></div>
<p>you be asked for the passphase</p>
<p>Step8, copy files to our webserver</p>
<div class="codecolorer-container bash twitlight" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">mkdir</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>apache2<span style="color: #000000; font-weight: bold;">/</span>certs<br />
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">cp</span> <span style="color: #660033;">-r</span> <span style="color: #000000; font-weight: bold;">*</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>apache2<span style="color: #000000; font-weight: bold;">/</span>certs<span style="color: #000000; font-weight: bold;">/</span></div></div>
<p>Step9, add the configuration to your VirtualHost block listening on the SSL port 443</p>
<div class="codecolorer-container apache twitlight" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="apache codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #00007f;">SSLEngine</span> <span style="color: #0000ff;">on</span><br />
<span style="color: #00007f;">SSLCertificateFile</span> <span style="color: #7f007f;">&quot;/etc/apache2/certs/server.crt&quot;</span><br />
<span style="color: #00007f;">SSLCertificateKeyFile</span> <span style="color: #7f007f;">&quot;/etc/apache2/certs/server.key&quot;</span><br />
<span style="color: #00007f;">SSLCACertificateFile</span> <span style="color: #7f007f;">&quot;/etc/apache2/certs/ca.crt&quot;</span></div></div>
<p>Step10, Tell apache to listen on 443<br />
By default there is a file in /etc/apache2/extras called httpd-ssl.conf<br />
this needs to edited and included in /etc/apache2/httpd.conf its commented out initially.</p>
<p><em>Depending where you are defining your VirtualHost blocks</em><br />
Comment out or remove the _default_ virtualHost block in httpd-ssl.conf, this will cause errors when starting apache because we have no configured certificate for the example apache provites</p>
<p>Edit your httpd.conf to include the etc/httpd-ssl.conf file, scroll to the bottom the file, you&#8217;ll notice its commented out at around line #476</p>
<div class="codecolorer-container apache twitlight" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="apache codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #adadad; font-style: italic;"># Secure (SSL/TLS) connections</span><br />
<span style="color: #adadad; font-style: italic;"># Include /private/etc/apache2/extra/httpd-ssl.conf</span></div></div>
<p>Just remove the # and move onto the next step</p>
<blockquote><p><em>I use a seperate vhosts folder in extra, containing individual conf files for each virtualhost, they are included in the extra/httpd-vhosts.conf files using the following:</em></p>
<div class="codecolorer-container apache twitlight" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="apache codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #00007f;">Include</span> /private/etc/apache2/extra/vhosts/*.conf</div></div>
</blockquote>
<p>Step10, restart apache</p>
<div class="codecolorer-container bash twitlight" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">sudo</span> apachectl restart</div></div>
<p>Step11, (a few steps in itself) Add our CA to Firefox so it think its a trusted authority<br />
Go to Preferences (Cmd + ,)<br />
Go to Advanced<br />
Go to Encryption<br />
Click &#8216;View Certificates&#8217;<br />
Choose the &#8216;Authorities&#8217; tab<br />
Click &#8216;Import&#8217;<br />
Hit Shift + Cmd + g to open the go to folder window<br />
Enter &#8216;/etc/apache2/certs&#8217; (You might be asked to authenticate with your system password)<br />
Select the ca.crt file we generated earlier and click &#8216;Open&#8217;<br />
Firefox will ask you:<br />
Do you want to trust &#8220;My CA&#8221; for the following purposes?<br />
Just select Trust this CA to identify websites<br />
Click &#8216;OK&#8217;<br />
Restart your browser</p>
<p>If you&#8217;ve followed everything correctly when you go to https://localhost (or whatever CommonName you specified)<br />
You will get a ssl encrypted site and no warnings about the certificate not being trusted.</p>
<div id="attachment_161" class="wp-caption alignnone" style="width: 310px"><a href="http://robaldred.co.uk/wp-content/uploads/2009/11/verified_cert.jpg"><img class="size-medium wp-image-161" title="verified_cert" src="http://robaldred.co.uk/wp-content/uploads/2009/11/verified_cert-300x125.jpg" alt="Example showing a local vhost with a verified cert" width="300" height="125" /></a><p class="wp-caption-text">Example showing a local vhost with a verified cert</p></div>
<p>If apache doesn&#8217;t come backup then apache&#8217;s config checks program is your best friend.</p>
<div class="codecolorer-container bash twitlight" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>sbin<span style="color: #000000; font-weight: bold;">/</span>httpd <span style="color: #660033;">-S</span></div></div>
]]></content:encoded>
			<wfw:commentRss>http://robaldred.co.uk/2009/11/adding-httpsssl-support-to-your-apache-mod_ssl-development-osx-mac-machine/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cucumber pretty html formatter for textmate</title>
		<link>http://robaldred.co.uk/2009/08/cucumber-pretty-html-formatter-for-textmate/</link>
		<comments>http://robaldred.co.uk/2009/08/cucumber-pretty-html-formatter-for-textmate/#comments</comments>
		<pubDate>Wed, 26 Aug 2009 11:23:48 +0000</pubDate>
		<dc:creator>Rob</dc:creator>
				<category><![CDATA[Mac Tips]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[cucumber]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[osx]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[testing]]></category>
		<category><![CDATA[textmate]]></category>

		<guid isPermaLink="false">http://robaldred.co.uk/?p=105</guid>
		<description><![CDATA[I&#8217;ve been using cucumber a lot recently along with the textmate bundle for it. The HTML output cucumber creates is fine, but not all that pretty. I&#8217;ve created a new formatter for cucumber to generate HTML enhanced with some javascript. My inspiration came from the textmate bundle for rspec. You can grap it off my [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been using <a href="http://cukes.info" target="_blank">cucumber</a> a lot recently along with the textmate bundle for it.<br />
The HTML output cucumber creates is fine, but not all that pretty.</p>
<p>I&#8217;ve created a new formatter for cucumber to generate HTML enhanced with some javascript.<br />
My inspiration came from the textmate bundle for <a href="http://rspec.info" target="_blank">rspec</a>.</p>
<p>You can grap it off my <a href="http://github.com/raldred/cucumber_textmate/tree/master" target="_blank">github</a>.<br />
Here&#8217;s some screenshots:</p>

<a href='http://robaldred.co.uk/2009/08/cucumber-pretty-html-formatter-for-textmate/cucumber_failure-2/' title='cucumber_failure'><img width="150" height="150" src="http://robaldred.co.uk/wp-content/uploads/2009/08/cucumber_failure-150x150.jpg" class="attachment-thumbnail" alt="cucumber_failure" title="cucumber_failure" /></a>
<a href='http://robaldred.co.uk/2009/08/cucumber-pretty-html-formatter-for-textmate/cucumber_full-2/' title='cucumber_full'><img width="150" height="150" src="http://robaldred.co.uk/wp-content/uploads/2009/08/cucumber_full-150x150.jpg" class="attachment-thumbnail" alt="cucumber_full" title="cucumber_full" /></a>

<p><strong>UPDATE:</strong> I replaced the original html formatter in cucumber; as of 19th November my fork has been merged into Aslak&#8217;s cucumber/master upgrade to the cucumber 0.4.5 release.<br />
<a href="http://bit.ly/6beSgO">View the commit history</a></p>
]]></content:encoded>
			<wfw:commentRss>http://robaldred.co.uk/2009/08/cucumber-pretty-html-formatter-for-textmate/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Dell Latitude D430 OSx86 working install guide using iPC PPF5 Final</title>
		<link>http://robaldred.co.uk/2009/06/dell-latitude-d430-osx86-install-guide-using-ipc-ppf5-final/</link>
		<comments>http://robaldred.co.uk/2009/06/dell-latitude-d430-osx86-install-guide-using-ipc-ppf5-final/#comments</comments>
		<pubDate>Sun, 14 Jun 2009 20:12:31 +0000</pubDate>
		<dc:creator>Rob</dc:creator>
				<category><![CDATA[Mac Tips]]></category>
		<category><![CDATA[dell]]></category>
		<category><![CDATA[hackintosh]]></category>
		<category><![CDATA[iPC]]></category>
		<category><![CDATA[laptop]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[osx]]></category>
		<category><![CDATA[osx86]]></category>

		<guid isPermaLink="false">http://robaldred.co.uk/?p=88</guid>
		<description><![CDATA[I had an iMac for a while now and have been thinking of getting a Macbook aswell. Just recently I&#8217;ve been given a Dell D430 I&#8217;ve heard a lot about OSx86 and tried to do it once before with a kalyway install but failed miserably. This Dell D430 has a good spec match to the [...]]]></description>
			<content:encoded><![CDATA[<p><strong>I had an iMac for a while now and have been thinking of getting a Macbook aswell.</strong></p>
<p>Just recently I&#8217;ve been given a Dell D430 I&#8217;ve heard a lot about OSx86 and tried to do it once before with a kalyway install but failed miserably. This Dell D430 has a good spec match to the macbooks and seems to be supported a bit so thought i&#8217;d give it a whirl.</p>
<p>It took about 6 hours, 2 of them spent downloading the 4.3gb iPC DVD from Rapidshare (btw, jDownloader + Rapidshare premium ftw)</p>
<p>I burnt the ISO to a Blank 4.7 DVD, popped it into my Lenovo USB DVD Combo drive (No DVD/CD on the D430)<br />
to my amazement the OSX installer booted up straight away.</p>
<p><strong>Note: You&#8217;ll need a USB KB + Mouse for the first boot, the installer works with the D430&#8242;s kb + trackpad but after install it needs little more work.</strong></p>
<p>Install done using iPC OSX 10.5.6 PPF5 Universal Final &#8211; Base<br />
Use the following options when installing:</p>
<p>- Kernel: Voodoo 9.5.0<br />
- Video: Intel GMA950<br />
- Chipset: LegacyAppleIntelPIIXATA<br />
- Audio: Sigmatel 9200 (Might not work, if not fix later with Apple HDA Patcher instructions below)<br />
- Ethernet: Intel 82566MM/DC (Not tested, I use Wifi)<br />
- Wireless: Intel PROSet/Wireless 3945<br />
- USB: Patched USB + PCGenUSBEHCI<br />
- Fixes &amp; Patches: ACPI Fix<br />
Time Machine Patch<br />
IOPCIFamily.kext patched<br />
Seatbelt.kext 10.5.5<br />
USB Mount Fix<br />
PS/2 Device Support (Both KB + Mouse)<br />
DSDT Patch<br />
- All Applications</p>
<p>Restart remember to use &#8220;-f&#8221; flag when starting up for the first time.</p>
<p><strong>KEYBOARD AND MOUSE Install</strong></p>
<p>1.    Download Package <a href="http://www.insanelymac.com/forum/index.php?act=attach&amp;type=post&amp;id=34259" target="_blank">PS2Fix1054</a>.<br />
2.    Right Click on the Package -&gt; Open With -&gt; Pacifist<br />
3.    After 15 Seconds, Click on Not Yet (Support Charles if you use this App)<br />
4.    Expand contents of &#8220;Choice0&#8243;<br />
5.    Expand contents of &#8220;appleps2controller.pkg&#8221;<br />
6.    Right Click &#8220;ApplePS2Controller.kext&#8221; and select the option &#8220;Install to default location&#8221;</p>
<p><strong>To solve the kernel panics when mounting dmg&#8217;s</strong><br />
Install this <a href="http://dl.getdropbox.com/u/384839/Drivers/seatbelt%2010.5.5.kext.zip">seatbelt.kext</a> from 10.5.5 over the one from 10.5.6, use osx86tools for install<br />
Remember to fix permissions.</p>
<p><strong>Audio Fix:</strong><br />
Download <a href="http://www.insanelymac.com/forum/index.php?act=attach&amp;type=post&amp;id=42389" target="_blank">Apple HDA Patcher 1.20</a><br />
and the correctly patch file for the <a href="http://psykopat.free.fr/apple/AppleHDA/sigmatel/Stac9200.txt">Sigmatel 9200 audio</a></p>
<p><strong>Battery Monitor: </strong><em>(Source: http://mydellmini.com/forum/mac-os-x/871-battery-monitor.html)</em></p>
<p>You&#8217;ll need the following Kext collection,<br />
<a href="http://robaldred.co.uk/wp-content/uploads/2009/06/Kexts.zip">Kexts for battery monitor</a><br />
We only need PowerManagement.bundle + AppleACPIBatteryManager.kext</p>
<p>First is PowerManagement.bundle, that goes into to /System/Library/SystemConfiguration folder<br />
Then there&#8217;s AppleACPIBatteryManager.kext, that goes into the /System/Libary/Extensions directory. Fix the extension permissions with osx86tools, reboot with -f</p>
<p><strong>Summary</strong><em><br />
</em></p>
<p>There is only 1 thing I cannot get working (Which <span>I&#8217;m</span> still working on finding a fix) the SD Card reader, it seems to freeze the laptop when a card is inserted.</p>
<p>If everything goes smoothly you should have OSX up and running on your Dell within an hour.<br />
Winner Winner!</p>
<p>Thanks for reading &amp; good luck<br />
<em>Rob</em></p>
<h6><em>Thanks to <a href="http://www.insanelymac.com" target="_blank">Insanely Mac </a>for being an invaluable resource for me <img src='http://robaldred.co.uk/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </em></h6>
]]></content:encoded>
			<wfw:commentRss>http://robaldred.co.uk/2009/06/dell-latitude-d430-osx86-install-guide-using-ipc-ppf5-final/feed/</wfw:commentRss>
		<slash:comments>21</slash:comments>
		</item>
		<item>
		<title>Restarting syslog process on Mac OSX</title>
		<link>http://robaldred.co.uk/2009/05/restarting-syslog-process-on-mac-osx/</link>
		<comments>http://robaldred.co.uk/2009/05/restarting-syslog-process-on-mac-osx/#comments</comments>
		<pubDate>Fri, 29 May 2009 11:31:45 +0000</pubDate>
		<dc:creator>Rob</dc:creator>
				<category><![CDATA[Mac Tips]]></category>
		<category><![CDATA[Apple]]></category>
		<category><![CDATA[logging]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[osx]]></category>
		<category><![CDATA[syslog]]></category>

		<guid isPermaLink="false">http://robaldred.co.uk/?p=71</guid>
		<description><![CDATA[I&#8217;ve been working on a project which uses syslog. In order for the changes I made to syslog.conf to take effect I needed to restart the syslogd process Yes I could restart my computer but that&#8217;s just too much effort. I found a simple solution using the built in Mac Launch Daemons ~#: launchctl unload [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been working on a project which uses syslog.<br />
In order for the changes I made to syslog.conf to take effect I needed to restart the syslogd process</p>
<p>Yes I could restart my computer but that&#8217;s just too much effort.<br />
I found a simple solution using the built in Mac Launch Daemons</p>
<pre lang="shell">
~#: launchctl unload /System/Library/LaunchDaemons/com.apple.syslogd.plist
~#: launchctl load /System/Library/LaunchDaemons/com.apple.syslogd.plist
</pre>
<p>syslogd will now have reloaded with any config changes you made.</p>
]]></content:encoded>
			<wfw:commentRss>http://robaldred.co.uk/2009/05/restarting-syslog-process-on-mac-osx/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
