【问题标题】:makecert.exe missing in windows 7, how to get it and use itWindows 7中缺少makecert.exe,如何获取和使用它
【发布时间】:2011-07-27 11:22:09
【问题描述】:

我使用的是 Windows 7。我没有 ma​​kecert.exe,当我尝试运行命令来生成像

这样的证书时才知道
makecert -sk XYZ -n "CN=XYZ Company" testXYZ.cer

我得到错误:

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

请建议如何解决此问题。是否需要重新安装 Windows SDK。

问候, 普拉文。

【问题讨论】:

    标签: windows-7 makecert


    【解决方案1】:

    我的副本(安装了 Visual Studio 2017)在这里:“C:\Program Files (x86)\Windows Kits\10\bin\10.0.17134.0\x64\makecert.exe”

    【讨论】:

      【解决方案2】:

      安装 Windows SDK 后的 Windows 10:

      如果您有 ARM 微处理器:C:\Program Files (x86)\Windows Kits\10\bin\10.0.17134.0\arm64

      英特尔微处理器:C:\Program Files (x86)\Windows Kits\10\bin\10.0.17134.0\x64

      将该文件夹添加到您的 PATH 环境变量中

      【讨论】:

        【解决方案3】:

        MakeCert.exe 现已弃用。您应该使用 PowerShell 的 New-SelfSignedCertificate cmdlet 创建自签名证书。

        【讨论】:

        【解决方案4】:

        makecert.exe 随 Visual Studio 和 Windows SDK 一起提供。因此,只需使用 Visual Studio 命令提示符或 Windows SDK 命令提示符即可直接使用,因为它将包含在命令提示符路径中。

        makecert 包含在“.NET 开发 > 工具”存储桶中。

        这个选定的存储桶包含 ma​​kecert 实用程序(至少在 SDK v7.1 中)。

        【讨论】:

        • 如果你只需要makecert:为你的电脑安装windows SDK版本。在安装过程中,取消勾选除 .net 工具之外的所有内容。
        • ...如果您刚刚选择了默认安装位置,makecert.exe(和pvk2pfx.exe)将在C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin
        【解决方案5】:

        不久前遇到了同样的问题,我想我会分享我找到的链接来下载和安装这个工具。

        http://go.microsoft.com/fwlink/p/?linkid=84091

        如果您确实解决了这个问题,请告诉我这是否有效,我知道这篇文章有点老了。

        【讨论】:

          【解决方案6】:

          C:\Program Files (x86)\Windows Kits\8.0\bin\x64

          C:\Program Files (x86)\Windows Kits\8.0\bin\x86

          【讨论】:

          • 在 Windows 7 上,默认安装目录为:C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin
          【解决方案7】:

          您可以在此处找到 makecert 的版本:http://www.inventec.ch/chdh/notes/makecert_5_131_3790_0.zip。还有关于如何在此处使用它的说明:http://www.inventec.ch/chdh/notes/14.htm

          【讨论】:

          【解决方案8】:

          您可以在 microsoft sdks 目录中找到它:

          C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bin\makecert.exe

          【讨论】:

            【解决方案9】:

            我知道现在回复为时已晚,但它可能会帮助其他人寻找这个可执行文件。

            如果你已经安装了VS 2005,你会在下面找到它

            C:\Program Files\Microsoft Visual Studio 8\Common7\Tools\Bin

            如果你已经安装了VS 2008,你会在下面找到它

            C:\Program Files\Microsoft Visual Studio 9.0\SmartDevices\SDK\SDKTools

            在命令提示符下转到此位置,然后运行带有参数的“makecert”命令。

            【讨论】:

              【解决方案10】:

              您是否阅读过此链接:MakeCert?它会将您发送到Microsoft Windows Software Development Kit,您可以从那里下载包括 makecert 在内的 SDK

              【讨论】:

              • OP 可能已经找到 this link,这是“makecert”的最高 Google 结果,但缺少 SDK 的链接。 +1 MS 以确保文档一致性。
              猜你喜欢
              • 1970-01-01
              • 1970-01-01
              • 2019-01-27
              • 1970-01-01
              • 2014-05-05
              • 2010-10-25
              • 1970-01-01
              • 1970-01-01
              • 1970-01-01
              相关资源
              最近更新 更多