Create A Self-Signed Certificate on Windows

Simple one-liner to create the certificate (requires Windows SDK):

"c:\Program Files (x86)\Windows Kits\8.0\bin\x86\makecert.exe" -r -pe -n "CN=venom" -b 01/01/2000 -e 01/01/2036 -eku -ss my -sr localMachine -sky exchange -sp "Microsoft RSA SChannel Cryptographic Provider" -sy 12 -a sha256

The makecert command with those options will create a certificate that you can use for local SSL testing (among other things) and the encryption is strong enough to satisfy modern browsers.  The certificate gets stored in the machine certificate store.  You can examine it via mmc.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s