Microsoft provides a tool named “MakeCert.exe” which helps us to create a temporary SSL Certificate for development environment.
This tool comes with Visual Studio & also with Windows SDK.
If you installed Visual Studio, you can find it in this location: “C:\Program Files\Microsoft Visual Studio
Now open Command Console (“cmd.exe”) & change your current directory to one of the location specified above. Type the following in Command Prompt & hit enter:
makecert -b 01/01/2009 -e 01/01/2020 -n "CN=Developers" -pe -r -sk "Microsoft Cryptographic Provider" -ss "Microsoft Cryptographic Store" c:\developerCertificate.cer
This will create a test certificate (valid from 01/01/2009 to 01/01/2020) named “developerCertificate.cer” in your ‘C’ drive, which you can use for development environment. You can change the validity period by changing the begindate (-b) & expirydate (-e). You can also change all the parameters specified above.
Here is the list of the parameters mentioned above:
Parameter Description
-b Begin Date
-e Expiry Date
-n Certificate Subject Name
-pe Mark Generated Private Key as Exportable
-r Configures MakeCert to create a self-signed root certificate
-sk Subject’s Key Container Name
-ss
Regard
Prateek
This comment has been removed by the author.
ReplyDelete