首页 文章

'makecert'在命令提示符中未被识别为内部或外部命令

提问于
浏览
13

要创建证书,请运行此命令:

makecert -r -pe -n "CN=effectLabs Server" -b 01/01/2011 -e 01/01/2020 -sky exchange C:\myCerts\ELServer.cer -sv C:\myCerts\ELServer.pvk

命令提示符发生以下错误:

'makecert'未被识别为内部或外部命令,可操作程序或批处理文件 .

4 回答

  • 16

    您需要使用Visual Studio命令提示符在命令行上使用makecert实用程序 .

  • 1

    Windows 10 上,此工具已重命名为 Developer Command Prompt for VS2015 . 只需按Windows键,然后搜索'Developer Command Prompt'即可找到此项 .

  • 13

    你必须使用 Visual Studio command prompt .

    您可以在以下位置找到它:

    In Windows 8 在“开始”屏幕上,按Windows徽标键 Windows logo + Z . (要打开“开始”屏幕,请按键盘上的Windows徽标键Windows徽标 . )选择屏幕底部的 Apps view 图标,然后选择 press V . 该列表将包括所有已安装的Visual Studio命令提示 . 选择开发人员命令提示符(或您要使用的命令提示符) .

    In Windows 7 选择“开始”,展开 All Programs ,然后展开 Microsoft Visual Studio . 根据您安装的Visual Studio的版本,选择 Visual Studio Tools ,Visual Studio命令提示符或要使用的命令提示符 .

  • 1

    在Windows 10上,我遇到了同样的问题 . 尽管以管理员身份运行VS2017的Developer Command Prompt,我也遇到了同样的错误 . 但是当我安装Windows SDK时,makecert命令成功运行了 .

相关问题