【问题标题】:makecert error: Can't access the key of the subjectmakecert 错误:无法访问主题的密钥
【发布时间】:2014-08-04 16:56:16
【问题描述】:

我有一个 powershell 脚本,我想在 2 台不同的独立机器上运行。在安装了 SDK 的 Windows 8.1 上,我发出命令:

makecert -r -pe -n "CN=My Root Authority" -ss CA -sr CurrentUser ^
     -a sha1 -sky signature -cy authority -sv CA.pvk CA.cer

我回来了:

Error: Can't access the key of the subject ('CA.pvk')
Failed

CA.pvk 被创建,但不是 CA.cer

有什么想法吗?

提前致谢,杰夫

【问题讨论】:

标签: windows makecert


【解决方案1】:

运行此命令后,应该会弹出几个令人困惑且无用的密码提示。

当我在第二个提示中输入与第一个提示不同的密码时,我收到了相同的错误消息。

第一个第二个中输入相同的密码 弹出式屏幕让我克服了这个问题。

【讨论】:

    猜你喜欢
    • 2019-04-21
    • 2011-08-09
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-06-23
    • 2015-04-18
    • 2021-12-19
    相关资源
    最近更新 更多