哪里是强名称密钥密码存储在哪里? [英] Where is the strong name key password stored?

查看:290
本文介绍了哪里是强名称密钥密码存储在哪里?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我通常不打扰我的签名.NET程序集,所以我不知道多少它的基本机制以后做。对于一个小项目,我的工作,有必要签,我创建了一个新的密钥,用密码保护的。

I don't usually bother with signing my .NET assemblies, so I don't know much beyond the basic mechanics of it. For a small project I'm working on, it was necessary to sign, and I created a new key, protected with a password.

我希望被提示输入此密码在一次重新编译的程序集当一些观点,但我从来没有需要创建密钥文件后,在任何地方进入。这似乎打败密码的目的,保护摆在首位的关键。

I expected to be prompted for this password at some point in time when recompiling the assembly, but I've never needed to enter it anywhere after creating the key file. This seems to defeat the purpose of password protecting the key in the first place.

我想象中的密码被缓存的地方,但在哪里?它是在某种私存?如果我给别人我在它的密钥文件整个解决方案目录,系统会提示我输入密码,他们或将他们能够无需密码登录大会?​​

I imagine the password is cached somewhere, but where? Is it in some kind of private storage? If I give someone else my entire solution directory with the key file in it, will they be prompted for the password I entered, or will they be able to sign the assembly without the password?

有使用它们很多有关强名称密钥的互联网和文章,但一些奇怪的原因,他们都掩盖了怎样的密码实际上是由Visual Studio中。

There are lots of articles on the internet about strong name keys and using them, but for some odd reason they all gloss over how the password is actually used by Visual Studio.

更新: 重新启动Visual Studio的(和Windows)没有任何影响,所以缓存似乎是持久性的。删除文件名为.suo不会改变,没有密码是需要签署组装的事实。

Update: Restarting Visual Studio (and Windows) has no effect, so the caching appears to be persistent. Deleting the .suo file does not change the fact that no password is needed to sign the assembly.

推荐答案

请参阅的说明文件的创建强名称密钥对话框

密码信息被存储在计算机的加密存储数据库。

The password information is stored in your computer's cryptographic storage database.

CLR内到外的其它信息:使用强名称签名

您可以安装使用严格的访问控制列表(ACL),以prevent未经授权的访问密钥容器密钥容器私钥。另外,也可以存储在智能卡或其他独立的硬件设备中的私钥。该SN.EXE工具允许您使用不同的加密服务提供商(CSP)的签名。看看为SN.EXE文档中的-c选项。

You can install the private key in a key container using restrictive access control lists (ACLs) to prevent unauthorized access to the key container. Alternatively, you can store the private key on a smart card or other separate hardware device. The sn.exe tool allows you to use a different cryptographic service provider (CSP) for signing. Take a look at the –c option in the documentation for sn.exe.

这篇关于哪里是强名称密钥密码存储在哪里?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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