windows Personal 和 Web Hosting 证书存储之间有什么区别?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/26681192/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
What's the difference between the Personal and Web Hosting certificate store?
提问by Sam Rueby
In Internet Information Services Manager, you're given the option between the Personal and the Web Hosting certificate store when creating or importing a certificate.
在 Internet 信息服务管理器中,您可以在创建或导入证书时在个人和 Web 托管证书存储之间进行选择。
What's the difference?
有什么不同?
采纳答案by Sam Rueby
I agree with CyptoGuy that IIS.NET states the the difference is that Web Hosting is designed to scale to more certificates. I think I found another important difference, which is that I have yet to find a way to access the Web Hostingstore from .NET code. Specifically because there is not a StoreName
enumeration value for Web Hosting: http://msdn.microsoft.com/query/dev12.query?appId=Dev12IDEF1&l=EN-US&k=k%28System.Security.Cryptography.X509Certificates.StoreName%29;k%28TargetFrameworkMoniker-.NETFramework
我同意 CyptoGuy 的观点,即 IIS.NET 指出不同之处在于 Web 托管旨在扩展到更多证书。我想我发现了另一个重要的区别,那就是我还没有找到从 .NET 代码访问Web Hosting商店的方法。特别是因为没有StoreName
Web Hosting的枚举值:http: //msdn.microsoft.com/query/dev12.query?appId=Dev12IDEF1& l=EN- US& k=k%28System.Security.Cryptography.X509Certificates.StoreName% 29; k%28TargetFrameworkMoniker-.NETFramework
回答by Crypt32
from IIS.NET:
从IIS.NET:
The key difference between Web Hosting store and Personal store is that Web Hosting store is designed to scale to higher numbers of certificates.
Web Hosting 商店和 Personal 商店之间的主要区别在于,Web Hosting 商店旨在扩展到更多数量的证书。
For lightweight scenarios (when you have less than 20-30 certificates) you can use any, Personal or WebHosting store.
对于轻量级方案(当您的证书少于 20-30 个时),您可以使用任何个人或 WebHosting 商店。
When you have 30+ different certificates, you should use Web Hosting store for performance reasons.
当您拥有 30 多个不同的证书时,出于性能原因,您应该使用 Web Hosting 存储。
回答by Jignesh
addition to Sam.Rueby's Answer:
除了 Sam.Rueby 的回答:
There is not a StoreName enumeration value for Web Hosting, but Web Hosting store can be accessed by using StoreName value as "WebHosting".
Web Hosting 没有 StoreName 枚举值,但可以通过将 StoreName 值用作“WebHosting”来访问 Web Hosting 商店。
var store = new X509Store( "WebHosting", StoreLocation.LocalMachine);