makecert失败 - 错误:CryptCertStrToNameW失败 [英] makecert fails - Error: CryptCertStrToNameW failed

查看:809
本文介绍了makecert失败 - 错误:CryptCertStrToNameW失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Windows Vista系统上。
我下载了microsoft sdk,以便能够为我正在尝试加载的应用程序制作证书。

基于安装手册,我输入以下命令来创建证书:

C:\Program Files \ MicroSoft SDKs \ Windows \ v6.0 \ Bin> makecert -n" CN = norcron-develop < BR>" -pe -sr localMachine -ss My -a sha1 -sky exchange

我有很多人看这个命令,每个人似乎认为它是有效的。
但是,我得到以下错误:

错误:CryptCertStrToNameW failed => 0x80092023(-2146885597)
失败

目前没有设置其他证书。
makecert版本是6.0.6000.16384

帮助...我被困了。< br>谢谢
Eric

解决方案

该命令在我的版本上正确运行。您是以管理员还是普通用户身份运行?如果您以普通用户身份运行并且它尝试将文件写出来,您应该会收到不同的错误。但是,如果底层实现依赖于程序集签名所执行的相同密钥(我相信它可能),则只有管理员具有访问您需要运行它的密钥的必要权限。在这种情况下,您可能会收到您所看到的错误。

Michael Taylor - 10/27/08
http:// p3net.mvps.org 结果

I'm on a Windows Vista system.
I download the microsoft sdk in order to be able to make certificates for this application I'm trying to get loaded.

based on the installation manual, I type the following command to create a certificate:

C:\Program Files\Microsoft SDKs\Windows\v6.0\Bin>makecert -n "CN=norcron-develop
" -pe -sr localMachine -ss My -a sha1 -sky exchange

I've had a number of people look at the command and everyone seems to think it is valid.
However, I get the following error:

Error: CryptCertStrToNameW failed => 0x80092023 (-2146885597)
Failed

There are no other certificates set up currently.
The makecert version is 6.0.6000.16384

Help ... I'm stuck.
Thanks
Eric

解决方案

The command runs correctly on my version.  Are you running as an admin or a normal user?  You should get a different error if you were running as a normal user and it tries to write the file out.  However if the underlying implementation relies on the same keys that assembly signing does (and I believe it might) then only admins have the necessary privileges to access the keys that you'd need to run it.  In this case you might get the error you're seeing.

Michael Taylor - 10/27/08
http://p3net.mvps.org


这篇关于makecert失败 - 错误:CryptCertStrToNameW失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆