Windows 7 中缺少 makecert.exe,如何获取并使用它
我使用的是 Windows 7。我没有 makecert.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吗?
问候, 普拉文。
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(10)
makecert.exe 随 Visual Studio 和 Windows SDK 一起提供。因此,只需使用 Visual Studio 命令提示符或 Windows SDK 命令提示符,它将直接开箱即用,因为它将包含在命令提示符路径中。
makecert
包含在“.NET Development > Tools”存储桶中。此选定的存储桶包括 makecert 实用程序(至少在 SDK v7.1 中)。
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).
C:\Program Files (x86)\Windows Kits\8.0\bin\x64
或
C:\Program Files (x86)\Windows Kits\8.0\bin\x86
C:\Program Files (x86)\Windows Kits\8.0\bin\x64
OR
C:\Program Files (x86)\Windows Kits\8.0\bin\x86
您可以在这里找到 makecert 的版本: http://www.inventec.ch/chdh/notes/makecert_5_131_3790_0.zip 。还有有关如何使用它的说明:http://www.inventec.ch/chdh/notes/14.htm
You can find a version of makecert here : http://www.inventec.ch/chdh/notes/makecert_5_131_3790_0.zip. Also instructions on how to use it here : http://www.inventec.ch/chdh/notes/14.htm
您是否阅读过此链接:MakeCert ?它会将您发送至 Microsoft Windows 软件开发工具包,您可以从中下载SDK 包括 makecert
Have you read this link: MakeCert? It sends you to Microsoft Windows Software Development Kit from where you can download the SDK including makecert
我知道现在回复已经太晚了,但是它可能会帮助其他人寻找这个可执行文件。
如果你已经安装了VS 2005,你会在下面找到它
如果你安装了 VS 2008,你会在下面找到它
在命令提示符下转到此位置,然后使用参数运行“makecert”命令。
I know its too late to reply, however it might help other looking out for this executable.
if you have installed VS 2005, you will find it under
if you have installed VS 2008, you will find it under
go to this location on command prompt and then run you "makecert" command with arguments.
MakeCert.exe
现已发布已弃用。您应该使用 PowerShell 的New-SelfSignedCertificate
cmdlet 创建自签名证书。MakeCert.exe
is now deprecated. You should use PowerShell'sNew-SelfSignedCertificate
cmdlet to create a selfsigned certificate.您可以在 microsoft sdks 目录中找到它:
You can find it on microsoft sdks directory:
我的副本(安装了 Visual Studio 2017)位于:“C:\Program Files (x86)\Windows Kits\10\bin\10.0.17134.0\x64\makecert.exe”
My copy (with Visual Studio 2017 installed) was here: "C:\Program Files (x86)\Windows Kits\10\bin\10.0.17134.0\x64\makecert.exe"
不久前遇到了同样的问题,我想我会分享我找到的下载和安装这个工具的链接。
http://go.microsoft.com/fwlink/p/?linkid=84091
如果您确实有时间的话,请告诉我这是否有效,我意识到这篇文章有点旧了。
Ran into the same problem awhile back and thought I would share the link I found to download and install this tool.
http://go.microsoft.com/fwlink/p/?linkid=84091
Please let me know if this works if you do get around to it, I realize this post is a little old.
安装 Windows SDK 后的 Windows 10:
如果您有 ARM 微处理器:C:\Program Files (x86)\Windows Kits\10\bin\10.0.17134.0\arm64
Intel 微处理器:C:\Program Files (x86)\Windows Kits\ 10 \bin\10.0.17134.0\x64
将该文件夹添加到您的 PATH 环境变量中
Windows 10 after installing Windows SDKs:
If you have ARM microprocessor: C:\Program Files (x86)\Windows Kits\10\bin\10.0.17134.0\arm64
Intel microprocessor: C:\Program Files (x86)\Windows Kits\10\bin\10.0.17134.0\x64
Add that folder to your PATH environment variable