Posted by: Barnabas Kendall | February 27, 2006

Testing with a local SSL certificate for free

It used to be that creating a self-signed certificate for local IIS debugging was a pain. Without a certificate, anything starting with “https://localhost” was bound to cause an error. There is a simple, two-minute fix that will work for most cases, however.

  1. Download and install the IIS Diagnostics Toolkit from Microsoft.
  2. Run the newly installed SSL Diagnostics program
  3. Right click on your local website and choose “Create new cert”. It will install a two-week locally signed certificate on your machine that is not technically valid, but will at least allow you to test SSL activity.

It turns out that there are a number of very useful tools in the IIS Diagnostics Toolkit:

  • WFetch (WFetch.exe). This tool allows you to generate customized HTTP requests and view request and response data.
  • Secure Socket Layer (SSL) Diagnostic Tool (SSLDiag). This tool helps you identify configuration problems in the IIS metabase, certificates, or certificate stores when running Web sites that use SSL.
  • Authentication and Access Control Diagnostics (authdiag.exe). This tool allows you to review, test, and correct problems with authentication and authorization.
  • SMTP Diagnostics. SMTPDiag is a diagnostic tool that is used to determine if Simple Mail Transfer Protocol (SMTP) and Domain Name System (DNS) are configured to reliably deliver mail to an external e-mail address.
  • Microsoft Debugging Tools for Windows. This tool allows you to debug and diagnose application problems.
  • Log Parser. Log parser is a powerful, versatile tool that provides universal query access to text-based data such as log files, XML files and CSV files, as well as key data sources on the Windows operating system such as the Event Log, the Registry, the file system, and Active Directory.

Speaking of tools, Fiddler is another extremly helpful and free tool from Microsoft for debugging HTTP communication.

Responses

Thanks you! - I’ve been looking for a test SSL cert solution for a while; that was quick and simple.

Thank you!!! This is EXACTLY what I was looking for.

[...] 13th, 2007 · No Comments One of the all-time most popular posts here continues to be “Testing with a local SSL certificate for free“, even though it is over a year old. To save you the click, here are those three simple steps [...]

Thank You. You got rid of my headache from an issue with native XMLHttpRequest in IE7 and a cross-domain posting. No I am not hacking. Just was working with a web app on a local box and another on a hosted box. ;-)

Thanks

Leave a response

Your response:

Categories