Generating self-signed certificate

1. Download and install Windows SDK

2. Open command prompt as Administrator and cd to this directory: C:\Program Files\Microsoft SDKs\Windows\v7.0\Bin

2. Create a root certificate

makecert -pe -n "CN=Test Root Authority" -ss my -sr LocalMachine -a sha1 -sky signature -r "c:\Test Root Authority.cer"

3. Create the new certificate and sign it with the newly generated self-signed root certificate

makecert -pe -n "" -ss my -sr LocalMachine -a sha1 -sky exchange -eku -in "Test Root Authority" -is my -ir LocalMachine -sp "Microsoft RSA Schannel Cryptographic Provider" -sy 12 c:\yourdomain.cer