Skip to content

Instantly share code, notes, and snippets.

@antopor
Created March 9, 2015 15:10
Show Gist options
  • Save antopor/8ba7359d2fce94c6d70b to your computer and use it in GitHub Desktop.
Save antopor/8ba7359d2fce94c6d70b to your computer and use it in GitHub Desktop.
Some useful commands to make certificates
Self signed root certificate
makecert -r -pe -n "CN=RootCA" -a sha1 -sky signature -cy authority -sv rootca.pvk rootca.cer
Make certificate signed by CA
makecert -cy end -n "CN=example.com" -ic rootca.cer -iv rootca.pvk -a sha1 -sky exchange -pe -sv example.com.pvk example.com.cer
Export private and public keys into pxf certificate
pvk2pfx -pvk example.com.pvk -spc example.com.cer -pfx example.com.pfx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment