无法创建主题 <“MyCAContainerName”> 的键

发布于 2024-11-02 21:27:41 字数 710 浏览 5 评论 0 原文

使用 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

我遵循了相同的过程,以便对机器密钥有足够的权限,但问题总是出现

using makecert i have written the commade:

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 certif.cer;

i recieved an error

Error: Can't create the key of the Subject <'MyCAContainerName'>

In seeking the solution, I discovered that the problem arises because I did not Authorizations on machineKey file : (C:\Documents and Settings\All Users\Application Data\Microsoft\Crypto\RSA\MachineKeys ), the

following link explains better what I'm saying;

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

I followed the same procedures in order to have enough permissions to the a machine key, but the problem is always posed

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

夏末染殇 2024-11-09 21:27:41

似乎 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.

会发光的星星闪亮亮i 2024-11-09 21:27:41

大师,

我也犯了同样的错误。我以管理员用户身份运行命令提示符解决了这个问题。

MV

Master,

I Ran on the same error. I solved it running command prompt as an administrator user.

MV

猫性小仙女 2024-11-09 21:27:41

虽然已经晚了,但我有解决办法。首先按原样执行命令,会给出错误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.

写下不归期 2024-11-09 21:27:41

就我而言,C 盘没有足够的空间。我清除了一些不需要的文件和文件夹,它起作用了。

In my case the C drive did not have enough space. I cleared some unwanted files and folders and it worked.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文