无法创建主题 <“MyCAContainerName”> 的键
使用 makecert
我写了commade:
makecert -pe -n“CN=Myauthority”-sr localmachine -ss Root -a sha256 -cy Authority -r -sk MyCAContainerName -sky Exchange -sp“Microsoft RSA Schannel 加密提供程序” -sy 12 -len 2048 certif。 cer;
我收到一个错误
错误:无法创建主题 <'MyCAContainerName'> 的密钥
在寻求解决方案时,我发现问题的出现是因为我没有对 machineKey
文件进行授权:(C:\Documents and Settings\All Users\Application Data\Microsoft\Crypto\RSA\ MachineKeys
),
以下链接更好地解释了我的意思;
http://support.microsoft.com/kb/278381
我遵循了相同的过程,以便对机器密钥有足够的权限,但问题总是出现
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
似乎
Can't create the key of the subject
是一个相当普遍的错误,但是,它后面的内容可能会提供线索。虽然它可能是由权限错误引起的(例如 makecert .exe 错误:无法创建主题的密钥),我还看到了以下形式的错误
Can't create the key of the subject ('')< /代码>由
-sp
参数的参数不正确引起。在您的情况下,
Error: Can't create the key of the subject <'MyCAContainerName'>
会让我猜测-sk MyCAContainerName
有问题命令的一部分,但结果是,如果它不是具有权限的内容,则它可能是不正确的命令参数或参数组合。It seems that
Can't create the key of the subject
is a fairly generic error, however, what follows after it may give a clue.While it may be caused by permissions errors (e.g. makecert.exe error: Can't create the key of the subject), I have also seen the error of the form
Can't create the key of the subject ('<some guid>')
caused by an incorrect parameter to the-sp
argument.In your case,
Error: Can't create the key of the Subject <'MyCAContainerName'>
would make me guess that there is something wrong with the-sk MyCAContainerName
portion of the command, but the upshot is, if it is not something with permissions, than it is likely an incorrect command argument or combination of arguments.大师,
我也犯了同样的错误。我以管理员用户身份运行命令提示符解决了这个问题。
MV
Master,
I Ran on the same error. I solved it running command prompt as an administrator user.
MV
虽然已经晚了,但我有解决办法。首先按原样执行命令,会给出错误
Error: Can't create the key of the subject <'MyCAContainerName'>
。但它会创建一个.pvk
文件。 不要删除它。相反,再次执行该命令,但这次从命令中删除-sk MyCAContainerName
。它将创建您的证书。Its late but I have the solution to this. First execute the command as you are, it will give the error
Error: Can't create the key of the Subject <'MyCAContainerName'>
. But it will create a.pvk
file. Don't delete it. Instead execute the command again, but this time remove-sk MyCAContainerName
from the command. And it will create your certificate.就我而言,C 盘没有足够的空间。我清除了一些不需要的文件和文件夹,它起作用了。
In my case the C drive did not have enough space. I cleared some unwanted files and folders and it worked.