How can I create a certificate using makecert with a ‘Subject Alternative Name’ field ?

You can add some fields eg, ‘Enhanced Key Usage’ with the -eku option and I’ve tried the -san option but makecert doesn’t like it.
This is a self-signed certificate so any method that uses IIS to create something to send off to a CA won’t be appropriate.
Makecert doesn’t appear to support SANs so I created a certificate with SANs for use with IIS using OpenSSL. Check out my blog post about it:
Source: Creating certificates with SANs using OpenSSL by Andy Arismeti, Thursday, September 1, 2011