Click here to Skip to main content
Click here to Skip to main content

Tagged as

Create self signed key...the easy way

, 30 Jan 2010 CPOL
Rate this:
Please Sign up or sign in to vote.
This is a short bat program to create a self signed key (with private key), if you call the bat "makecertif.bat", to create a key named ServerKey you need to type :makecertif.bat ServerKey, it will create ServerKey.pfx, a certificate with a private key you can use to secure a web site in...
This is a short bat program to create a self signed key (with private key), if you call the bat "makecertif.bat", to create a key named ServerKey you need to type :
 
makecertif.bat ServerKey, it will create ServerKey.pfx, a certificate with a private key you can use to secure a web site in IIS, or to secure a WCF service or to use to authenticate a client.
 
You need to put the script in Windows SDK bin directory (mine is C:\Program Files\Microsoft SDKs\Windows\v7.0\Bin).
 
makecert -r -pe -n "CN=CompanyXYZ Server" -b 01/01/2007 -e 01/01/2012 -sky exchange %1.cer -sv %1.pvk
pvk2pfx.exe -pvk %1.pvk -spc %1.cer -pfx %1.pfx
del %1.cer
del %1.pvk

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

Nicolas Dorier
Software Developer Freelance
France France
I am a trainer and a curious developer.
 
CEO of AO-IS, we created a tool to make IaaS on Azure more easy IaaS Management Studio.
 
If you are interested for working with me, for fun coding stuff, for freelance stuff, or interested in using our cloud training infrastructure freely for a kickass presentation for the dev community ? this way Smile | :)

Comments and Discussions

 
-- There are no messages in this forum --
| Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.1411019.1 | Last Updated 31 Jan 2010
Article Copyright 2010 by Nicolas Dorier
Everything else Copyright © CodeProject, 1999-2014
Layout: fixed | fluid