What's the difference between the Personal and Web Hosting certificate store?
Asked Answered
G

3

131

enter image description here

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.

What's the difference?

Grater answered 31/10, 2014 at 18:26 Comment(0)
G
43

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 Hosting store 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

Grater answered 31/10, 2014 at 19:52 Comment(1)
According to Jignesh, it is possible to access this store using: var store = new X509Store( "WebHosting", StoreLocation.LocalMachine);Cis
K
94

from 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.

For lightweight scenarios (when you have less than 20-30 certificates) you can use any, Personal or WebHosting store.

When you have 30+ different certificates, you should use Web Hosting store for performance reasons.

Kemberlykemble answered 31/10, 2014 at 19:29 Comment(0)
S
53

addition to Sam.Rueby's Answer:

There is not a StoreName enumeration value for Web Hosting, but Web Hosting store can be accessed by using StoreName value as "WebHosting".

var store = new X509Store( "WebHosting", StoreLocation.LocalMachine);
Sniperscope answered 26/6, 2015 at 6:54 Comment(0)
G
43

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 Hosting store 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

Grater answered 31/10, 2014 at 19:52 Comment(1)
According to Jignesh, it is possible to access this store using: var store = new X509Store( "WebHosting", StoreLocation.LocalMachine);Cis

© 2022 - 2024 — McMap. All rights reserved.