Missing makecert.exe

前端 未结 5 1024
抹茶落季
抹茶落季 2020-12-31 03:52

For some reason I am missing makecert.exe on my system. I searched the whole hard drive and it\'s not there. In particular, it\'s not in C:\\Program Files\\Microsoft SDKs\\W

5条回答
  •  被撕碎了的回忆
    2020-12-31 04:53

    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.

提交回复
热议问题