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 1.3.6.1.5.5.7.3.1 -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.

Advertisements

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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 )

Google+ photo

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

Connecting to %s