【问题标题】:Can't create a key of the Subject <'MyCAContainerName'>无法创建主题 <'MyCAContainerName'> 的密钥
【发布时间】:2011-08-09 09:15:18
【问题描述】:

使用makecert我已经写了逗号:

makecert -pe -n "CN=Myauthority" -sr localmachine -ss Root -a sha256 -cy authority -r -sk MyCAContainerName -sky exchange -sp "Microsoft RSA Schannel Cryptographic Provider" -sy 12 -len 2048 证书。 cer;

我收到一个错误

错误:无法创建主题

的密钥

在寻求解决方案的过程中,我发现问题的出现是因为我没有在machineKey文件上授权:(C:\Documents and Settings\All Users\Application Data\Microsoft\Crypto\RSA\MachineKeys),

以下链接更好地解释了我的意思;

http://support.microsoft.com/kb/278381

我遵循相同的程序以获得对机器密钥的足够权限,但问题总是存在

【问题讨论】:

    标签: certificate makecert


    【解决方案1】:

    Can't create the key of the subject 似乎是一个相当普遍的错误,但是,它后面的内容可能会提供线索。

    虽然它可能是由权限错误引起的(例如makecert.exe error: Can't create the key of the subject),但我也看到了Can't create the key of the subject ('&lt;some guid&gt;') 形式的错误是由-sp 参数的错误参数引起的。

    在你的情况下,Error: Can't create the key of the Subject &lt;'MyCAContainerName'&gt; 会让我猜测命令的 -sk MyCAContainerName 部分有问题,但结果是,如果它不是具有权限的东西,那么它可能是一个不正确的命令参数或参数的组合。

    【讨论】:

    • 谢谢。似乎我永远无法使用-sp "Microsoft RSA SChannel Cryptographic Provider" -sy 12,即使根据makecert page 上对这些选项的解释(即它们在注册表中),此CSP 是有效的。
    【解决方案2】:

    大师,

    我遇到了同样的错误。我以管理员用户身份运行命令提示符解决了它。

    MV

    【讨论】:

      【解决方案3】:

      已经很晚了,但我有办法解决这个问题。首先按原样执行命令,它会给出错误Error: Can't create the key of the Subject &lt;'MyCAContainerName'&gt;。但它会创建一个.pvk 文件。 不要删除它。而是再次执行命令,但这次从命令中删除 -sk MyCAContainerName。它会创建您的证书。

      【讨论】:

        【解决方案4】:

        在我的情况下,C 驱动器没有足够的空间。我清除了一些不需要的文件和文件夹,它起作用了。

        【讨论】:

          猜你喜欢
          • 1970-01-01
          • 1970-01-01
          • 2018-08-19
          • 1970-01-01
          • 2018-04-28
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 2022-07-28
          相关资源
          最近更新 更多