Skip to content

Instantly share code, notes, and snippets.

@tswann
Created May 16, 2011 11:56
Show Gist options
  • Save tswann/974318 to your computer and use it in GitHub Desktop.
Save tswann/974318 to your computer and use it in GitHub Desktop.
Self-Certified SSL Certificates using makecert
# Create a trusted authority
makecert -sv SignRoot.pvk -cy authority -r signroot.cer -a sha1 -n "CN=Dev Cert Authority" -ss my -sr localmachine
# First install root auth certificate above (See comment), then...
# Create authorised certificate for actual use
makecert -iv SignRoot.pvk -ic signroot.cer -cy end -pe -n "CN=localhost" -eku 1.3.6.1.5.5.7.3.1 -ss my -sr localmachine -sky exchange -sp "Microsoft RSA SChannel Cryptographic Provider" -sy 12
@tswann
Copy link
Author

tswann commented May 16, 2011

Installing the Root Auth Certificate:

Run -> mmc
File -> Add/Remove Snap-In -> Add ->
Double click 'Certificates'
Select 'Computer Account' radio button
Next -> Finish -> Close -> OK

Move the authority cert from "Personal/Certificates" to "Trusted Root Certificate Authorities/Certificates"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment