Missing makecert.exe

醉酒当歌 提交于 2019-11-30 11:16:41

makecert.exe is also installed as part of Windows SDKs. For example it is available under \Program Files\Microsoft SDKs\Windows\v7.0A\bin for the Windows 7.0A SDK.

Just to note this as to save you an hour or so of frustration. In Windows 8 SDK, the path is: \Program Files (x86)\Window Kits\8.0\bin\x64\makecert.exe. Note that my machine is 64-bit, so replace the folder names with the corresponding 32-bit version if it happens to be your machine. I was looking at the "\Program Files\Microsoft SDKs" folder, as I thought the folder structure of Windows 7 SDK is similar to Windows 8 SDK. How wrong I was.

I was tasked with deploying Azure Recovery Services and as such makecert.exe was required on all VMs.

The following worked for me:


Azure VM Microsoft Windows Server 2012 R2 Datacentre:

  • Download Microsoft Windows SDK for Windows 7 and .NET Framework 4 http://www.microsoft.com/en-us/download/details.aspx?id=8279

  • Select .net Framework TOOLS only.

  • Note makecert.exe installed to:

    C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\x64
    
  • use the following to create the certificate using Powershell:

     "C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\x64\makecert.exe" -r -pe -n CN=CertificateName -ss my -sr localmachine -eku 1.3.6.1.5.5.7.3.2 -len 2048 -e 01/09/2017 machinename.cer
    

Azure VM Microsoft Windows Server 2012 Datacentre:

  • Windows Software Development Kit (SDK) for Windows 8.1 http://msdn.microsoft.com/en-us/windows/desktop/bg162891.aspx

  • downloaded all

  • installed these 2 components only:

    • windows software development kit

    • net framework 4.5.1 software development kit

  • Note makecert.exe installed to:

    C:\Program Files (x86)\Windows Kits\8.1\bin
    
  • use the following to create the certificate using Powershell:

    "C:\Program Files (x86)\Windows Kits\8.1\Bin\x64\makecert.exe" -r -pe -n CN=CertificateName -ss my -sr localmachine -eku 1.3.6.1.5.5.7.3.2 -len 2048 -e 01/09/2017 machinename.cer
    

Hope that helps someone.

here is a thread with many other locations on where the exe can be.

Currently, the MakeCert.exe is deprecated:

Note MakeCert is deprecated. To create self-signed certificates, use the Powershell Cmdlet New-SelfSignedCertificate.

You should use the new New-SelfSignedCertificate power shell cmlet.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!