如何找到并使用makecert.exe
如果安装visual studio 后,visual studio command 仍然无法识别 makecert.exe 命令。 则需要手动安装 Windows Software Development Kit (SDK) 。 安装后,在下列文件夹中可以找到相关exe。 C:\Program Files (x86)\Windows Kits\10\bin\10.0.16299.0\x64 下面是一些例子: makecert -r -pe -n "CN=HOSTNAME" -eku 1.3.6.1.5.5.7.3.1 -sky exchange -sv HOSTNAME.pvk HOSTNAME.cer pvk2pfx -pvk HOSTNAME.pvk -spc HOSTNAME.cer -pfx HOSTNAME.pfx Other examples: Creates a root certificate with exportable key and places it into the Trusted root auth store of the local computer: makecert.exe -r -n "CN=SIL Root Cert" -pe -sr localmachine -ss AuthRoot -len 2048 -sky exchange -m