Click here to Skip to main content
12,074,449 members (60,360 online)
Click here to Skip to main content
Add your own
alternative version

Tagged as

Stats

5.3K views
4 bookmarked
Posted

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 currently the CTO of Metaco, we are leveraging the Bitcoin Blockchain for delivering financial services.

I also developed a tool to make IaaS on Azure more easy to use IaaS Management Studio.

If you want to contact me, go this way Smile | :)

You may also be interested in...

Comments and Discussions

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