Loading

Friday, January 1, 2010

Setup self-signed certificate on IIS 6



Create a self-signed SSL certificate with SelfSSL from the IIS 6.0 Resource Kit.

The IIS 6.0 Resource Kit contains a utility called SelfSSL.exe for quickly and easily creating and installing a self-signed certificate into IIS 6 for Windows 2003 or XP.
  • Download IIS 6.0 Resource Kit Tools
  • Install the resource kit
  • Go to Programs \ IIS Resources \ SelfSSL and select "SelfSSL"
  • Execute the following (modify for your environment):

    selfssl.exe /N:CN=www.powercram.com /K:1024 /V:180 /S:56792119 /P:443 /T

  • Go to https://localhost to test.
Explanation of selfssl.exe switches (used in command above):
  • /N:CN=www.powercram.com - common name of the certificate.
  • /K:1024 - key length.
  • /V:180 - number of days certificate is valid.
  • /S:56792119 - IIS site ID.  Default is 1 for "default site."
  • /P:443 - SSL port.
  • /T - Adds the self-signed certificate to "Trusted Certificates" list.

No comments:

Post a Comment