SelfCert: Create a Self-Signed Certificate Interactively (GUI) or Programmatically in .NET.

A good read if you’re struggling to understand the X.509 details: PKI presentation

A great location to get a free and valid certificate: StartSSL

Partially related to this item: Scott Hanselmann explains SSL in IIS Express

Another fellow developer found his way:

OpenId and WCF