Frequently I use following command to create self signed certs so I'm adding here for future reference. 

makecert.exe -sr LocalMachine -ss My -a sha1 -n CN=MySrvCert -sky exchange -pe