"makecert.exe -ss" - Create Certificate in System Stores


How to create a test certificate for myself and put it into "My - Personal" system certificate store directly using the "makecert.exe" command?

✍: FYIcenter.com


You can create a test certificate for yourself and save it in a system certificate store directly using "certmgr.exe -ss" command as shown in this tutorial.

"\Program Files\Microsoft Visual Studio 8\sdk\v2.0\bin\makecert.exe" 
-n "CN=Linda Dews" -ss My


"\Program Files\Microsoft Visual Studio 8\sdk\v2.0\bin\certmgr.exe" 
-s My

==============Certificate # 2 ==========
  [0,0] (CN) Linda Dews
  [0,0] (CN) Root Agency
   0E 91 26 C9 08 DD 46 96 40 AE 62 12 17 7C EE 87
SHA1 Thumbprint::
      98DC5D0E FECEF6A4 6F515663 A2563E4E 58E1FC2C
MD5 Thumbprint::
      D37C8638 40BC4641 B4CF9145 286272A0
Key MD5 Thumbprint::
      67872C01 4B76337C 07F4892F 74322447
Provider Type:: 1 Provider Name:: Microsoft Strong Cryptographic Provider 
Container: JoeSoft KeySpec: 2
  Thu Jul 26 19:28:44 2012
  Sat Dec 31 19:59:59 2039

What you are getting from this tutorial:

  • 'makecert.exe -n "CN=Linda Dews" -ss My' creates a new public key and private key pair, sign the public key as certificate with "Root Agency" private key, and put the key pair and the certificate into "My" system certificate store, which is the "Personal" store on the "certmgr.msc" user interface.
  • 'certmgr.exe -s My' lists all certificate in "My" store to confirm that the new certificate is in there.

You can also run "certmgr.msc" and view "Personal" store to see Linda's certificate and private key.


"makecert.exe -ss" - Create New System Certificate Store

"makecert.exe -sk" - Specify Private Key Container

Certificate Generation Tool "makecrt.exe" on Windows

⇑⇑ Windows Certificates Tutorials

2012-08-09, 8712🔥, 0💬