<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"><channel><title>RSS feed for InstantSpot site Blog of Dave</title><link>http://daveshuck.instantspot.com</link><description>Dave Shuck&apos;s ramblings on - ColdFusion, Flex, and Java, and life.</description><language>en-us</language><copyright>This work is Copyright &#xA9; 2009 by Blog of Dave</copyright><generator>RSSVille ColdFusion FeedMaker, version 1.0</generator><pubDate>Sun, 22 Nov 2009 02:00:12 GMT</pubDate><item><title>Create SSL sites in Apache on Windows with OpenSSL</title><link>http://daveshuck.instantspot.com/blog/2009/11/12/Create-SSL-sites-in-Apache-on-Windows-with-OpenSSL</link><description>To get a secure SSL site up and running on Apache under Windows, there are a few hoops to jump through that are not very intuitive.&amp;nbsp; To that end, I am going to document my approach to setting up SSL using OpenSSL.&amp;nbsp; This approach assumes that you already have Apache up and running on your machine, so if you have not done that, head over to the &lt;a href=&quot;http://httpd.apache.org/download.cgi&quot;&gt;HTTPD download page&lt;/a&gt; and set that up before continuing.&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;b&gt;Setting up OpenSSL&lt;br /&gt;&lt;/b&gt;First we need to get &lt;a href=&quot;http://www.openssl.org&quot;&gt;OpenSSL&lt;/a&gt; setup on our system, which is not included with the Apache Windows binaries.&amp;nbsp; In fact the OpenSSL project doesn&apos;t even provide the binaries themselves, but you can find them at &lt;a href=&quot;http://www.slproweb.com/products/Win32OpenSSL.html&quot;&gt;Shining Light Productions&lt;/a&gt;.&amp;nbsp; For this example, I will be choosing the &lt;a href=&quot;http://www.slproweb.com/download/Win32OpenSSL_Light-0_9_8k.exe&quot;&gt;Win32 OpenSSL v0.9.8k Light&lt;/a&gt; version.&amp;nbsp; If you see a message like the one below, you will need to install the &lt;a href=&quot;http://www.microsoft.com/downloads/details.aspx?familyid=9B2DA534-3E03-4391-8A4D-074B9F2BC1BF&amp;amp;displaylang=en&quot;&gt;Microsoft Visual C++ 2008 Redistributable Package&lt;/a&gt; and then attempt the OpenSSL installation again.&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&lt;img style=&quot;max-width: 800px;&quot; src=&quot;http://daveshuck.instantspot.com/userfiles/073006/91/c++error.png&quot; /&gt;&lt;br /&gt;&lt;br /&gt;Once you have it installed, you can do a quick test to make sure that it is set up properly:&lt;br /&gt;&lt;br /&gt;&lt;img style=&quot;max-width: 800px;&quot; src=&quot;http://daveshuck.instantspot.com/userfiles/073006/91/openssltest.png&quot; /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/li&gt;&lt;li&gt;&lt;b&gt;Creating Certificates&lt;br /&gt;&lt;/b&gt;Next, we will use the OpenSSL terminal interface to create our self-signed certificates.&amp;nbsp; To explain a bit about what is going on below, I have a site already existing on my system that can be reached at http://scribble.&amp;nbsp; What we are doing is creating a secure subdomain of https://secure.scribble. &amp;nbsp; Typically when I create certificates, I name the files with the host/domain obvious so that they can be easily identified later.&amp;nbsp; Obviously you will want to replace the domain name to match your setup, but type the following in the terminal in the OpenSSL/bin directory:&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;padding: 0pt 10px 10px 0pt;&quot;&gt;[codeblock 433]&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;That will generate what you see below.&lt;br /&gt;&lt;br /&gt;&lt;img style=&quot;max-width: 800px;&quot; src=&quot;http://dl.dropbox.com/u/101948/blog/entries/ssl_on_apache/create-cert1.png&quot; height=&quot;420&quot; width=&quot;650&quot; /&gt;&lt;br /&gt;&lt;br /&gt;You may notice that I left a lot of the prompts blank.&amp;nbsp; Considering this is a dummy certificate in a development environment, that approach makes sense.&amp;nbsp; You may choose to be more explicit based on your needs.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;If we were to use this key as it is, we would be prompted for the password every time that Apache starts.&amp;nbsp; Since that is less than ideal, we will now generate a non-protected key from the one we created in the previous step by typing the following:&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;padding: 0pt 10px 10px 0pt;&quot;&gt;[codeblock 434]&lt;br /&gt;&lt;br /&gt;&lt;img style=&quot;max-width: 800px;&quot; src=&quot;http://dl.dropbox.com/u/101948/blog/entries/ssl_on_apache/create-cert2.png&quot; /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;You can see that I was prompted for a pass phrase.&amp;nbsp; This is the same password that you created when we generated the certificate above.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Now we need to need to build the certificate that we will actually import into Apache.&amp;nbsp; You can do so by typing:&lt;br /&gt;&lt;span style=&quot;padding: 0pt 10px 10px 0pt;&quot;&gt;&lt;br /&gt;[codeblock 435]&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;This will result in the following output:&lt;br /&gt;&lt;br /&gt;&lt;img style=&quot;max-width: 800px;&quot; src=&quot;http://dl.dropbox.com/u/101948/blog/entries/ssl_on_apache/create-cert3.png&quot; height=&quot;443&quot; width=&quot;650&quot; /&gt;&lt;br /&gt;&lt;br /&gt;You can see that we now have a .cert, .csr, .key, and .pem file for our domain.&amp;nbsp; We will use a combination of the .key and the .cert&lt;br /&gt;&lt;br /&gt;&lt;/li&gt;&lt;li&gt;&lt;b&gt;Configuring Apache&lt;br /&gt;&lt;/b&gt;Now we need to make sure that your Apache server is ready to serve SSL requests.&amp;nbsp; &lt;br /&gt;&lt;br /&gt;First, let&apos;s put the .key and .cert files that we created above into a directory under Apache.&amp;nbsp; In your &quot;conf&quot; directory, create a subdirectory named &quot;ssl&quot; and move secure.scribble.key and secure.scribble.cert into that new directory.&lt;br /&gt;&lt;br /&gt;Next we need to make sure that the mod_ssl module is enabled.&amp;nbsp; Open up the httpd.conf file for your Apache webserver.&amp;nbsp; Search for &quot;mod_ssl&quot; and you should find a line that looks like this:&lt;br /&gt;&lt;br /&gt;&lt;img style=&quot;max-width: 800px;&quot; src=&quot;http://daveshuck.instantspot.com/userfiles/073006/91/mod_sso.png&quot; /&gt;&lt;br /&gt;&lt;br /&gt;Yours will likely be commented out with a &apos;#&apos; sign in front of the line.&amp;nbsp; You will want to delete that &apos;#&apos; so that it looks like the highlighted line above.&lt;br /&gt;&lt;br /&gt;Next you will need to make sure that you have uncommented the line that includes the httpd-ssl.conf file like you see below:&lt;br /&gt;&lt;br /&gt;&lt;img style=&quot;max-width: 800px;&quot; src=&quot;http://daveshuck.instantspot.com/userfiles/073006/91/conf_ssl.png&quot; /&gt;&lt;br /&gt;&lt;br /&gt;The last thing we need to do is configure our site.&amp;nbsp; Open up the conf/extra/httpd-ssl.conf file in an editor.&amp;nbsp; You will see that there is an amazingly huge and complex site definition in there already that starts with &lt;virtualhost _default_:443=&quot;&quot;&gt; and ends about 150 lines later with &lt;/virtualhost&gt;.&amp;nbsp; We need to disable this site.&amp;nbsp; If you are feeling bold, you can simply delete it.&amp;nbsp; However, I take the approach of commenting it out entirely so that I still have it as a reference, which is my recommendation as well.&amp;nbsp;&amp;nbsp; Starting with the line &lt;virtualhost _default_:443=&quot;&quot;&gt;, put a &apos;#&apos; at the start of every line that doesn&apos;t already have one and continue until you comment out the &lt;/virtualhost&gt; line.&lt;br /&gt;&lt;br /&gt;Now it is finally time for us to create the site definition for our https://secure.scribble site.&amp;nbsp; We will use some of the concepts in the example, but eliminate most of them.&amp;nbsp; Here is what mine looks like after paring down all the excess:&lt;br /&gt;&lt;span style=&quot;padding: 0pt 10px 10px 0pt;&quot;&gt;[codeblock 436]&lt;br /&gt;&lt;br /&gt;In that code you can see where we are pointing to the .key and .cert files that we created above.&amp;nbsp; &lt;br /&gt;&lt;br /&gt;Now, restart your Apache server and you are now serving up securely! &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;zemanta-pixie&quot;&gt;&lt;img class=&quot;zemanta-pixie-img&quot; alt=&quot;&quot; src=&quot;http://img.zemanta.com/pixy.gif?x-id=9d1b1403-fab2-8595-83d6-897a928c54c5&quot; /&gt;&lt;/div&gt;</description><pubDate>Fri, 13 Nov 2009 03:47:33 GMT</pubDate><guid>http://daveshuck.instantspot.com/blog/2009/11/12/Create-SSL-sites-in-Apache-on-Windows-with-OpenSSL</guid><category>Tips and Tricks,Servers,Windows,Technology</category></item><item><title>A linux guy&apos;s experience with Windows 7</title><link>http://daveshuck.instantspot.com/blog/2009/10/19/A-linux-guys-experience-with-Windows-7</link><description>&lt;p&gt;Anyone who knows me well knows that I am typically somewhat of an anti-Windows guy. I absolutely love linux, and get very frustrated by Windows in general. The only thing that I really dislike about linux is the lack of application support by a number of companies (ahem&amp;hellip;. Adobe).&amp;nbsp; Before going to the Adobe MAX conference, I decided I should swap out OSes on my personal laptop so that I could run all the stuff I would need for labs without constantly cursing about being stuck in a VM, limited functionality, etc.&amp;nbsp; A friend had just bought a package of Windows 7 licenses and sold me one for 5 bucks, which I considered to be a pretty reasonable risk.&amp;nbsp; I opted for installing Windows 7 on my laptop.&lt;br /&gt; &lt;br /&gt; Given that background and my previous feelings about Windows, I have to say that it is a pretty dang nice operating system.&amp;nbsp; It is by far the best offering to date by MS in my opinion.&amp;nbsp; There are a few things that they still haven&apos;t managed to get right (native file copy still makes me want to stick forks in my eyes), but by and large they have done a great job with Windows 7.&amp;nbsp; Other than having to track down a few drivers for my laptop, the installation was painless &amp;ndash; if not fast.&amp;nbsp; This is still an area that linux, and especially Ubuntu, wins hands down though.&amp;nbsp; Apps run extremely stable, and with the addition of a new concept of &amp;quot;Libraries&amp;quot;, directories that I need access to regularly are right at hand instead of having to tree down through big hierarchies.&amp;nbsp; I am also not finding what I expected would be an immediate degradation of performance after installing all the servers and development tools that I use on a daily basis.&amp;nbsp; Over all, so far so good.&lt;br /&gt; &lt;br /&gt; &lt;strong&gt;A few things that I think are a *must* for the way that I use it. &lt;/strong&gt;&lt;/p&gt; &lt;ul&gt;     &lt;li&gt;I found a &amp;quot;sudo&amp;quot; program called &lt;a href=&quot;http://brandontools.com/content/StartPlusPlus.aspx&quot;&gt;Start++&lt;/a&gt; that allows me to open applications from the terminal or start menu as Administrator by typing &lt;strong&gt;sudo notepad&lt;/strong&gt; [or some other program].&amp;nbsp; It will prompt you for the UAC stuff and the program will open as administrator.&amp;nbsp; I use this regularly for editing system files like hosts, apache configs, and use it to open a terminal to fire off j2ee servers.&amp;nbsp;&lt;/li&gt;     &lt;li&gt;Install &lt;a href=&quot;http://www.codesector.com/teracopy.php&quot;&gt;Teracopy&lt;/a&gt; which is a replacement for the Windows copy program.&amp;nbsp; While certainly not as fast/efficient as a linux terminal, it greatly increases file copy speed over the native windows GUI file copy.&amp;nbsp; No more &amp;quot;preparing to copy&amp;quot; waits while your system bogs down.&lt;/li&gt; &lt;/ul&gt; &lt;p&gt;&lt;strong&gt;Things that annoy me&lt;/strong&gt;&lt;/p&gt; &lt;ul&gt;     &lt;li&gt;I still wish I could have a real terminal and be able to use VI in sudo, but that is just something I will have to get over I guess.&lt;/li&gt;     &lt;li&gt;I hate that I now have to be so careful with regard to viruses and spyware.&amp;nbsp; I love the protection that linux offers in that area, and having to go out of my to stay protected seems a bit cumbersome.&lt;/li&gt;     &lt;li&gt;I miss being able to easily try out software with the ease of the synaptic package manager.&amp;nbsp; It seems foreign now to have to download an exe run an installer and have settings being obscurely written all over a &amp;quot;black box&amp;quot; registry.&lt;/li&gt;     &lt;li&gt;I miss built-in networking tools.&amp;nbsp; Even simply things like being able to run &amp;quot;whois&amp;quot; from the teminal.&lt;/li&gt;     &lt;li&gt;My drive is getting fragmented far faster than with linux, and I find that I am running the defrag tool fairly often.&amp;nbsp; Linux just manages this under the covers and I never have to worry about it.&lt;/li&gt; &lt;/ul&gt; &lt;p&gt;All said, after using it for about the past 4 weeks, I can honestly say that I am surprised (and perhaps even a bit disappointed) that I like it as much as I do.&amp;nbsp; I planned on just running it while I was at the Adobe MAX conference and going back to linux when I got home, but it looks like I will be keeping it for a while longer.&lt;/p&gt; &lt;div class=&quot;zemanta-pixie&quot;&gt;&lt;img src=&quot;http://img.zemanta.com/pixy.gif?x-id=8f740e60-f3eb-8f02-a041-715c13c72d2d&quot; alt=&quot;&quot; class=&quot;zemanta-pixie-img&quot; /&gt;&lt;/div&gt;</description><pubDate>Mon, 19 Oct 2009 13:58:00 GMT</pubDate><guid>http://daveshuck.instantspot.com/blog/2009/10/19/A-linux-guys-experience-with-Windows-7</guid><category>Windows,Technology,Linux</category></item><item><title>I recommend saying &quot;format c: /q&quot; near your new Vista machine</title><link>http://daveshuck.instantspot.com/blog/2007/02/01/I-recommend-saying-format-c-q-near-your-new-Vista-machine</link><description>&lt;p&gt;  As reported by ZDnet, Microsoft has left a funny security hole in their new offering to the masses that allows an attacker - or just someone who is able to... you know...talk and stuff -&amp;nbsp; to verbally execute commands through its speech recognition feature.&amp;nbsp; One point that has been brought up is that someone could send an audio file that played the commands for your computer to follow.&amp;nbsp; How about that!&amp;nbsp; So for those of you who continue to use Windows and migrate to Vista, you might consider disabling leaving your microphone off unless you are actually using it.&amp;nbsp; Also, before they get a patch out, you *have* to go play with it and let me know what you were able to actually do!&amp;nbsp;  &lt;/p&gt;  &lt;p&gt;  Here is the &lt;a href=&quot;http://blogs.zdnet.com/Ou/?p=418&quot;&gt;complete article which includes a confirmation response from Microsoft&lt;/a&gt;  on the exploit.&amp;nbsp;  &lt;/p&gt;  </description><pubDate>Fri, 02 Feb 2007 01:51:05 GMT</pubDate><guid>http://daveshuck.instantspot.com/blog/2007/02/01/I-recommend-saying-format-c-q-near-your-new-Vista-machine</guid><category>Windows</category></item><item><title>Mounting drives in Windows... just like Linux!</title><link>http://daveshuck.instantspot.com/blog/2007/01/10/Mounting-drives-in-Windows-just-like-Linux</link><description>&lt;p&gt;  Before continuing I must concede to the fact that I am *not* a fan of Windows.  I use it where I have to, but by and large I feel that Linux, specifically Ubuntu, is just a more pleasant experience and is a better tool for the kind of jobs that *I* need a computer to do.  I must also admit that I was Microsoft certified about 9 years ago (the NT4 track!), so what I &amp;quot;discovered&amp;quot;  last night might not be entirely new to many people, but it was certainly new to me so I thought I would share. Plus, considering how rarely I have compliments for Windows, I feel obligated to share this so that my steadfast Microsoft fanboy friends will quit saying &amp;quot;Why do you hate Bill Gates?&amp;quot;, which incidentally I do not.  &lt;/p&gt;  &lt;p&gt;  Now that I have gotten that out, let me tell you about a cool feature I found within Windows last night. It actually does something the way that Linux does!    &lt;/p&gt;  &lt;p&gt;  One of the Windows web servers that we interact with has its webroot on the D: drive, with a path D:\inetpub\wwwroot.  At the time that this application was created, hard drives were not the size they are today and 8GB seemed like a reasonable partition for a data drive.  However the application has grown, as has its need for hard drive consumption and it finally reached a level which needed to be addressed.  &lt;/p&gt;  &lt;p&gt;  I originally set out to add a new drive (E:), then move the wwwroot over to the new drive, update all mappings in IIS, including virtual directories, and update any mappings within ColdFusion.  This was not a very exciting prospect considering this is a live production server.  However, this seemed like a fairly logical approach so I began.  &lt;/p&gt;  &lt;p&gt;  First I added the new drive and initialized it in the Disk Manager.  I now had this 80GB empty partition which I planned on turning into E:   After choosing to to make it a &amp;quot;Primary Partition&amp;quot; and selecting the size, I got to the point for choosing the drive letter.  This is where an option jumped out at me that I had never noticed before, which is a testament to both my lack of observance and to how fast I normally cruise through this section!  I was presented with the following:  &lt;/p&gt;  &lt;p&gt;  &lt;img src=&quot;http://img444.imageshack.us/img444/1466/screenshotfn6.png&quot; alt=&quot; &quot; width=&quot;500&quot; height=&quot;383&quot; /&gt;  &lt;/p&gt;  &lt;p&gt;  WHAT???  &amp;quot;Mount&amp;quot;???&lt;br /&gt;  &lt;/p&gt;  &lt;p&gt;  The solution became abundantly clear immediately.  Rather than have to re-map paths and risk blowing up whatever buried physical paths might lurk under the covers of this legacy application, I would simply mount the new drive as: d:\inetpub\wwwroot -  just like Linux but with backwards slashes and the funny letter/colon thing on the front!  &lt;/p&gt;  &lt;p&gt;  So, I renamed the existing wwwroot folder to wwwroot.old, mounted the drive to that position, and copied over all files from the old wwwroot to the new wwwroot.  I restarted ColdFusion and IIS and the application picked up right where it had left off without a hitch!  &lt;/p&gt;  &lt;p&gt;  So (get ready to write this down, because you won&amp;#39;t hear it often from me).... YAY for Windows!  &lt;/p&gt;  </description><pubDate>Wed, 10 Jan 2007 22:13:59 GMT</pubDate><guid>http://daveshuck.instantspot.com/blog/2007/01/10/Mounting-drives-in-Windows-just-like-Linux</guid><category>Windows</category></item><item><title>Grand Canyon... It&apos;s on!</title><link>http://daveshuck.instantspot.com/blog/2005/07/11/Grand-Canyon-Its-on</link><description>My father and I decided that this was the year that we would hike the North Rim to the South Rim of the Grand Canyon.   I know this seems crazy, but it is actually a paperwork challenge to be able to hike the Grand Canyon.  There is an application process in which you have to fax your request in the 1st day of the month 6 months before the intended date of your trip with a detailed itinerary, including where you will be sleeping and when.  We sent faxed our paperwork in and held our breath on the 1st of April, 6 months before we hoped to go in September.  After no word for a month we finally contacted them, only to find out that we had been rejected.  Discouraged, but not beaten, we laid out the calendar to see if there was another time that would work.  We decided that November would be acceptable, albeit a little colder.  It should be in the 60s in the bottom of the canyon though where we will spend the majority of our time.  Once again, we laid out our itinerary and faxed in on July 1.  My dad received a letter today dated July 6, 2005 telling him that they were sorry, but they were unable to accept out application.  He spent a good hour walking around the house cussing and feeling terribly disappointed.  A bit later my mom noticed there was another letter from the Grand Canyon dated July 7, 2005.  &lt;br /&gt;  &lt;br /&gt;  &lt;div class=&quot;note&quot;&gt;  Dear Mr. Shuck, we have accepted your request to hike the Grand Canyon on the dates of November 1, 2 and 3, 2005.  Enlcosed are your passes, which you will need to affix to your backpack and carry with you in the canyon.  There is no need to stop by the back country headquarters before departing on the trail.  &lt;/div&gt;  So in 3.5 months, I will be taking this in....&lt;br /&gt;  &lt;div style=&quot;text-align: center&quot;&gt;  &lt;img src=&quot;/images/GrandCanyon.jpg&quot; border=&quot;0&quot; alt=&quot;&quot; /&gt;  &lt;/div&gt;      </description><pubDate>Mon, 11 Jul 2005 05:00:00 GMT</pubDate><guid>http://daveshuck.instantspot.com/blog/2005/07/11/Grand-Canyon-Its-on</guid><category>Outdoors</category></item></channel></rss>