<?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>Greg Ferguson&#039;s BLOG</title>
	<atom:link href="http://fergitech.com/wordpress/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://fergitech.com/wordpress</link>
	<description>a journal of my every day thoughts</description>
	<lastBuildDate>Thu, 21 May 2009 20:11:40 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Create Self Signed Certificate for Windows Server 2008 Remote Desktop Gateway</title>
		<link>http://fergitech.com/wordpress/?p=31</link>
		<comments>http://fergitech.com/wordpress/?p=31#comments</comments>
		<pubDate>Thu, 21 May 2009 19:10:00 +0000</pubDate>
		<dc:creator>Greg</dc:creator>
				<category><![CDATA[Technical]]></category>
		<category><![CDATA[Remote Desktop]]></category>
		<category><![CDATA[Remote Desktop Gateway]]></category>
		<category><![CDATA[Self Signed Certificate]]></category>
		<category><![CDATA[Terminal Services]]></category>
		<category><![CDATA[Windows Server 2008]]></category>

		<guid isPermaLink="false">http://fergitech.com/wordpress/?p=31</guid>
		<description><![CDATA[One of my favorite features of Windows Server 2008 is Remote Desktop Gateway.  This feature allows you to access all of the windows machines on your network (XP, Vista, 2003, etc.) via remote desktop even if they are behind a NAT or firewall.  Furthermore, all communication is over SSL!  How awesome is [...]]]></description>
			<content:encoded><![CDATA[<p>One of my favorite features of Windows Server 2008 is Remote Desktop Gateway.  This feature allows you to access all of the windows machines on your network (XP, Vista, 2003, etc.) via remote desktop even if they are behind a NAT or firewall.  Furthermore, all communication is over SSL!  How awesome is that?</p>
<p>One pain point that I did have with this feature was the creation of Self Signed Certificates.  The Remote Desktop Gateway interface allows you to create a Self Signed Certificate but once generated it only has a lifespan of 6 months <em>annoying</em>.  I have been using this feature for over a year and a half so I have had to regenerate my self signed certificate three times.  I finally got fed up and decided to figure out how to generate my own self signed certificate that lasts longer than 6 months.  FYI : Microsoft recommends only using a self signed certificate for testing purposes.  I am only using Remote Desktop Gateway for my home lab and I don&#8217;t want to shell out the cash to purchase an SSL certificate so I am going to ignore this recommendation.</p>
<h2>Create the Certificate</h2>
<p>To create the self signed certificate you will need to download a few tools, Makecert.exe, cert2spc.exe, and pvkimprt.exe.  Makecert and cert2spc are found in the <a href="http://go.microsoft.com/fwlink/?linkid=84091">Windows Platform SDK</a> and the <a href="http://msdn.microsoft.com/netframework/downloads/">.Net Framework SDK</a>.  <a href="http://office.microsoft.com/downloads/2000/pvkimprt.aspx">PvkImprt.exe</a> can be found as a stand alone download.  <strong>These tools can be installed and run on a different server or workstation, you do not need to run the tools on the target server.</strong></p>
<p>Once you have downloaded and installed the three command line tools you can begin.  The first and most involved command is Makecert.  For the purposes of this example I will use contoso.com as the URL that I will access my remote desktop gateway server using.  It is very important that you generate the certificate with the same URL that you will use to access the server with.</p>
<p><code>makecert -r -pe -n "CN=contoso.com" -eku 1.3.6.1.5.5.7.3.1 -b 05/19/2009 -e 01/01/2029 -sky exchange -sp "Microsoft RSA SChannel Cryptographic Provider" -sy 12 -sv contoso.com.pvk contoso.com.cer</code></p>
<p>Makecert will prompt you for a password, supply any password that you are comfortable with.  You can find a description of all of the command line options for Makecert <a href="http://msdn.microsoft.com/en-us/library/aa386968(VS.85).aspx">here</a>.  The most important things to note here are the -b and -e arguments which specify the dates from which the certificate is valid.  These are the options that the terminal services gateway UI does not give you.</p>
<p>Next you will run cert2spc and pvkimprt.</p>
<p><code>cert2spc contoso.com.cer contoso.com.spc</code><br />
<code>pvkimprt -pfx contoso.com.spc contoso.com.pvk</code></p>
<p>Pvkimprt will prompt you for the password, enter the same password that you used when you created the certificate with makecert.  The pvk file is the one that you will import on your target windows server 2008 server.</p>
<h2>Server Configuration</h2>
<p>First you will install the certificate on the target Windows 2008 server.  To install the certificate on the target server you should open the Microsoft Management Console, MMC, and add the certificates snap-in.  When opening the certificates snap-in choose &#8220;Computer Account&#8221;.  </p>
<p><img src="wp-content/CertMgrCompAcct.jpg" alt="Certificate Manager Computer Account" width="400px" /></p>
<p>Once you have added the snap in, right click on the &#8220;Personal&#8221; key store and choose &#8220;All Tasks&#8221; and &#8220;Import&#8221;.  </p>
<p><img src="wp-content/CertMgrPersonalImport.jpg" alt="Certificate Manager Personal Import" width="300px" /></p>
<p>Browse to the pvk file that you created during the steps above.  Again, you will be prompted for the password that you used during certificate creation.  Once imported the remote desktop UI should recognize the certificate as a valid certificate to use.</p>
<p>Go to the TS Gateway Manager.  Click on your server and click properties.  Select the SSL Certificate tab and click &#8220;Select an existing certificate for SSL encryption (recommended)&#8221;, then click &#8220;Browse Certificates&#8221;.  You should see your certificate here.  Select your certificate and click &#8220;Install&#8221;, then &#8220;Ok&#8221;.</p>
<h2>Client Configuration</h2>
<p>Now that you have installed the self signed certificate on the server you will need to install the certificate on all the computers that you will be connecting to the remote desktop gateway from.  On the client computer double click on the consoto.cer file generated by the makecert command or the pvk file generated by pvkimprt and install it to the &#8220;Trusted Root Certification Authorities&#8221; key store.</p>
<p>Then configure your remote desktop client to use a remote desktop gateway.  Open the remote desktop client, mstsc, and go to the &#8220;Advanced&#8221; tab.</p>
<p><img src="wp-content/RemoteDesktopClientAdvanced.jpg" alt="Remote Desktop Client Advanced Tab" width="300px" /></p>
<p>Then click on settings and select &#8220;Use these TS Gateway server settings&#8221; and enter &#8220;contoso.com&#8221;.  Optionally you can select &#8220;Bypass TS Gateway server for local addresses&#8221;.</p>
<p><img src="wp-content/RemoteDesktopClientTSGateway.jpg" alt="Remote Desktop Client TS Gateway Configuration" width="300px" /></p>
<p>When you enter the name of the server/workstation you want to connect to enter it as if you are on the network local to the Remote Desktop Gateway Server.  When you click connect you will first be prompted to enter credentials authenticating you to the Remote Desktop Gateway Server.  Then you will be prompted for credentials to authenticate you to the target server/workstation.</p>
]]></content:encoded>
			<wfw:commentRss>http://fergitech.com/wordpress/?feed=rss2&amp;p=31</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Microsoft Web Experiences in Los Angeles Tomorrow</title>
		<link>http://fergitech.com/wordpress/?p=30</link>
		<comments>http://fergitech.com/wordpress/?p=30#comments</comments>
		<pubDate>Fri, 08 Jun 2007 04:52:53 +0000</pubDate>
		<dc:creator>Greg</dc:creator>
				<category><![CDATA[MicrosoftWebExperience]]></category>
		<category><![CDATA[Technical]]></category>

		<guid isPermaLink="false">http://fergitech.com/wordpress/?p=30</guid>
		<description><![CDATA[I am going to the Microsoft Web Experiences event tomorrow in LA.  They will be showing all kinds of new web technologies like ASP.NET Ajax, WPFe, and IIS7.  Here is some more information:
Microsoft is hosting free Microsoft Web Experience events at the Los Angeles Microsoft office on June 8th and the Denver Microsoft [...]]]></description>
			<content:encoded><![CDATA[<p>I am going to the Microsoft Web Experiences event tomorrow in LA.  They will be showing all kinds of new web technologies like ASP.NET Ajax, WPFe, and IIS7.  Here is some more information:</p>
<blockquote><p>Microsoft is hosting free Microsoft Web Experience events at the Los Angeles Microsoft office on June 8th and the Denver Microsoft office on June 15th.  They will be presenting information on building the next generation user experience on the web. </p>
<p>They are providing breakfast and lunch, hosting a reception with beer and wine, and attendees are automatically registered in a drawing for an XBox 360 and a Zune that will be given away at each event.  For more information, visit <a href="http://kaevans.sts.winisp.net/Shared%20Documents/webexperience.aspx" mce_href="http://kaevans.sts.winisp.net/Shared%20Documents/webexperience.aspx">http://kaevans.sts.winisp.net/Shared%20Documents/webexperience.aspx</a>.
</p></blockquote>
<p>Technorati Tags: <a href="http://technorati.com/tag/MicrosoftWebExperience" rel="tag"><img style="border:0;vertical-align:middle;margin-left:.4em" src="http://static.technorati.com/static/img/pub/icon-utag-16x13.png?tag=MicrosoftWebExperience" alt=" " />MicrosoftWebExperience</a></p>
]]></content:encoded>
			<wfw:commentRss>http://fergitech.com/wordpress/?feed=rss2&amp;p=30</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sudoku Solver</title>
		<link>http://fergitech.com/wordpress/?p=28</link>
		<comments>http://fergitech.com/wordpress/?p=28#comments</comments>
		<pubDate>Sat, 04 Mar 2006 04:37:42 +0000</pubDate>
		<dc:creator>Greg</dc:creator>
				<category><![CDATA[Technical]]></category>

		<guid isPermaLink="false">http://fergitech.com/wordpress/?p=28</guid>
		<description><![CDATA[For a recent school project I was asked to create a Sudoku solver application.  If you are not familiar with Sudoku puzzles you can visit, http://www.websudoku.com.  Sudoku has become quite popular in recent months.  When I told my friends and family that I was creating this piece of software they were all [...]]]></description>
			<content:encoded><![CDATA[<p>For a recent school project I was asked to create a Sudoku solver application.  If you are not familiar with Sudoku puzzles you can visit, <a href="http://www.websudoku.com">http://www.websudoku.com</a>.  Sudoku has become quite popular in recent months.  When I told my friends and family that I was creating this piece of software they were all very interested and asked if they could use the program when I was done.  So I took my school project and extended it for general use.  You can download the software <a href="http://www.fergitech.com/SudokuSolver/SetupSudokuSolver.msi">here</a>.  The software requires the .NET Framework v2 and Windows Installer v3.1.  You will have both of these if you have been keeping up with your windows updates.<br />
<br />
<a href="http://www.fergitech.com/SudokuSolver/SetupSudokuSolver.msi">Download Sudoku Solver</a></p>
<div align="center">Screenshot:<br /><img src="http://fergitech.com/wordpress/wp-content/sudokuSolver.jpg" width="311" height="400" alt="Sudoku Solver" /></div>
]]></content:encoded>
			<wfw:commentRss>http://fergitech.com/wordpress/?feed=rss2&amp;p=28</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Angel&#8217;s Even the Score</title>
		<link>http://fergitech.com/wordpress/?p=27</link>
		<comments>http://fergitech.com/wordpress/?p=27#comments</comments>
		<pubDate>Thu, 06 Oct 2005 07:04:17 +0000</pubDate>
		<dc:creator>Greg</dc:creator>
				<category><![CDATA[Sports]]></category>

		<guid isPermaLink="false">http://fergitech.com/wordpress/?p=27</guid>
		<description><![CDATA[Tonight the Angels evened the series with the Yankees at one game a piece.  They took a while to start the scoring but they got it done in the end.  The pitching and defense was there throughout the game and remains the keystone to the Angels’ success.  Game 3 is on Friday [...]]]></description>
			<content:encoded><![CDATA[<p>Tonight the Angels evened the series with the Yankees at one game a piece.  They took a while to start the scoring but they got it done in the end.  The pitching and defense was there throughout the game and remains the keystone to the Angels’ success.  Game 3 is on Friday and it will be a tough one.  Randy Johnson has had great success against the Angels in the past.  But for now, light up halo.<br />
<a href="http://fergitech.com/wordpress/wp-content/DSC00590.JPG" title="Halo Victory"><img src="http://fergitech.com/wordpress/wp-content/thumb-DSC00590.JPG" width="200" height="150" alt="Halo Victory" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://fergitech.com/wordpress/?feed=rss2&amp;p=27</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>My Two Seconds of Fame</title>
		<link>http://fergitech.com/wordpress/?p=26</link>
		<comments>http://fergitech.com/wordpress/?p=26#comments</comments>
		<pubDate>Wed, 05 Oct 2005 06:25:45 +0000</pubDate>
		<dc:creator>Greg</dc:creator>
				<category><![CDATA[Sports]]></category>

		<guid isPermaLink="false">http://fergitech.com/wordpress/?p=26</guid>
		<description><![CDATA[If anyone caught the end of the Angel&#8217;s playoff game against the Yankees you would have seen me on TV.  This is a nationally televised broadcast (FOX)!

The outcome of the game wasn&#8217;t great but the experience was.  Courtesy of Joey&#8217;s uncle we had amazing seats.  The seats were right behind the visitor&#8217;s [...]]]></description>
			<content:encoded><![CDATA[<p>If anyone caught the end of the Angel&#8217;s playoff game against the Yankees you would have seen me on TV.  This is a nationally televised broadcast (FOX)!</p>
<p><a href="http://fergitech.com/wordpress/wp-content/DSC00579.JPG" title="Me On TV"><img src="http://fergitech.com/wordpress/wp-content/thumb-DSC00579.JPG" width="200" height="150" alt="Me On TV" /></a></p>
<p>The outcome of the game wasn&#8217;t great but the experience was.  Courtesy of Joey&#8217;s uncle we had amazing seats.  The seats were right behind the visitor&#8217;s dugout.</p>
<p><a href="http://fergitech.com/wordpress/wp-content/DSC00571.JPG" title="field"><img src="http://fergitech.com/wordpress/wp-content/thumb-DSC00571.JPG" width="200" height="150" alt="field" /></a></p>
<p>We even caught a glimpse of a baseball legend, Reggie Jackson.</p>
<p><a href="http://fergitech.com/wordpress/wp-content/DSC00575.JPG" title="reggie"><img src="http://fergitech.com/wordpress/wp-content/thumb-DSC00575.JPG" width="200" height="150" alt="reggie" /></a></p>
<p>The Angel&#8217;s did lose the game but that just makes game two more exciting.  I predict a Halo victory for game two.</p>
]]></content:encoded>
			<wfw:commentRss>http://fergitech.com/wordpress/?feed=rss2&amp;p=26</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
