Feb 24, 2009

HOWTO: Self-Signed SSL on IIS in Vista

Author: gaweee | Filed under: development, howto

Yes it can be done, no its not hard at all, no you dont have to download any weird sharewares and no it doesnt cost a cent. Lets go!

  1. Download the SelfSSL from microsoft downloads
  2. Install it, duh.
  3. Assuming you installed it where its supposed to be, go to C:\Program Files\IIS Resources\SelfSSL and run selfssl.exe
  4. Agree to it installing the certificate for you and press Y
  5. Open your IIS Manager > Sites
  6. Right click on the Default Web Site and choose Edit Bindings
  7. Add
  8. Select type as https and select the certificate you just installed.
  9. Done

Viola!

This adds the certificate for only a puny 7 days. If you’re like us, you’ll probably need a cert for a much longer period than that. No problem!
Fire up your command prompt and cd to C:\Program Files\IIS Resources\SelfSS\
type the following:

selfssl.exe /V:3650 /t

That’ll give you a nice cert for 10 years.
But wait, you’re original cert is still there! Wel’ll have to remove it.

  1. Start->Run->mmc.exe
  2. File -> Add/Remove Snap-in
  3. Certificates (on the left column)
  4. OK
  5. Navigate the tree to: Certificates -> Personal -> Certificates
  6. Delete the original SSL cert you created (see the expiration date differences)
  7. Follow the above instructions in customizing your IIS to the new cert now. =D

Note: This is used for development purposes and the certificates will be recognized as invalid for that domain. Go ahead and add the security exception in Firefox, IE, Chrome or whatever other browsers you’re using.

Feb 8, 2009

HOWTO: IE6 testing environment on Vista

Author: gaweee | Filed under: development, howto

Lets cut through the chase, theres no way to install IE6 on vista but you can boot it off an image (which seems to be the most popular choice anyway), even if other sites teaches you registry hacks and etc, there are still differences between the real IE6 rendering versus the emulated/hacked version. But, what you can do is to install the Virtual PC with IE6 + XP SP3 Virtual Hard Disk.

Once you’ve downloaded both and installed the Virtual PC, run it. Then:
File > New Virtual Machine Wizard

  1. Create a virtual machine
  2. Choose some location of your preference
  3. Choose Windows XP for your operating system
  4. Use the recommended RAM (of if you can spare it, adjust it more or less to your preference)
  5. Use an existing Virtual Hard Disk
  6. Choose the downloaded IE6 + XPSP3 .vhd image
  7. Finish

When ready, click Start on the virtual image and viola!

Note:

  • The .vhd image always expires 3 months as of download, this is to prevent ppl from just living off an image (since i gather the image can be run off other operating systems too)
  • Go to Settings > Networking and choose the active network controller to give the IE6 image networking capabilities
  • If you’ve been developing your website on localhost, then you cannot access http://localhost/project on your IE6 anymore as thats is resolved internally. Instead use your main computer’s IP. In my case, http://192.168.1.1/project

Windows XP booting via Virtual PC  IE6 running on Virtual PC

Jun 13, 2008

mklink: no longer just a vista tease

Author: gaweee | Filed under: development

i was working with .net dev studio and was trying to figure out how to make several projects share a common folder of master files. So we came across mklink. For all you folks out there rushing to open your command prompt in anything lesser than Vista, give it up, it aint gonna work. Vista onwards only baby~

The method signature is as follows:

MKLINK [[/D] | [/H] | [/J]] Link Target
 
        /D      Creates a directory symbolic link.  Default is a file
                symbolic link.
        /H      Creates a hard link instead of a symbolic link.
        /J      Creates a Directory Junction.
        Link    specifies the new symbolic link name.
        Target  specifies the path (relative or absolute) that the new link refers to.

I posted on how the tool didnt allow directories to be hard linked previously.
Correction: directories can be symbolic linked that will be resolved by the filesystem. The confusion there was when a symbolic link is created, it looks no different from a shortcut on explorer. Giving doubt to whether it would hold its ground when accessed programmatically instead of via the explorer.

Thanks Alex for pointing this out!

Recent Comments