Created
July 19, 2016 15:48
-
-
Save tillig/04d1eea99e7e8b9e5c8e30700d4933db to your computer and use it in GitHub Desktop.
Examples of how to create certificates with makecert/pvk2pfx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Certificate for simple encryption/decryption. Doesn't have to be signed, but does need key exchange allowed. | |
makecert -sv mycertificate.pvk -n "CN=My Simple Certificate" mycertifcate.cer -sky Exchange | |
# Certificate that can sign other certificates (share this as the CA). | |
makecert -sv mysigningcert.pvk -n "CN=My Signing Certificate" -r mysigningcert.cer | |
# Certificate for SSL that's signed by a certificate authority. | |
makecert -sk mysignedcert -iv mysigningcert.pvk -n "CN=My Signed Certificate" -ic mysigningcert.cer mysignedcert.cer -sr YourUsername -ss My | |
# If you need to export/save a certificate as a PFX file. | |
# Be sure to use / for parameters rather than - when using pvk2pfx. It won't recognize dash. | |
pvk2pfx /pvk C:\path\to\mycertificate.pvk /spc C:\path\to\mycertificate.cer /pfx C:\path\to\mycertificate.pfx |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment