makecert.exe missing in windows 7, how to get it and use it

pravin picture pravin · Apr 1, 2011 · Viewed 89.5k times · Source

I am using Windows 7. I don't have the makecert.exe, which I came to know when I tried to run commands to generate certificates like

makecert -sk XYZ -n "CN=XYZ Company" testXYZ.cer

I get error :

'makecert' is not recognised as an internal or external command, operable program or batch file.

Pls suggest how to resolve this issue. Do i need to install the Windows SDK again.

Regards, Pravin.

Answer

Pete Davis picture Pete Davis · Feb 5, 2012

makecert.exe comes with both Visual Studio and the Windows SDK. Therefore just use either the Visual Studio Command Prompt or the Windows SDK command prompt and it will work straight out of the box as it will be included in the command prompt path.

makecert is included in the ".NET Development > Tools" bucket.

This selected bucket includes the makecert utility (at least in SDK v7.1). This selected bucket includes the makecert utility (SDK v7.1).