I'm using this code to import a certicifate from a PFX file:
string certPath = @"C:\a\something.eu.pfx";
string certPass = "password";
// Create a collection object and populate it using the PFX file
X509Certificate2 certifikat = new X509Certificate2();
certifikat.Import(certPath, certPass, X509KeyStorageFlags.PersistKeySet);
X509Store store = new X509Store();
store.Open(OpenFlags.MaxAllowed);
store.Add(certifikat);
store.Close();
It executes without errors, but the certificate doesn't appear in the "Web Hosting" store. How can I import it in that store?