25. June 2012 14:56
By default creating a self signed certificate on IIS7 will create one bearing the name of the local server. If you need more custom abilities, such as being able to specify your own domain name if can be tricky.
I recently started using the SelfSSL7 tool and it works a treat.
The blog post covering its usage can be found here.
The syntax that worked well for me was:
SelfSSL7 /Q /T /I "site.com" /S "mysite" /N cn=site.com