-1
我使用这个代码导入从PFX文件certicifate:PFX文件导入到在C#中的虚拟主机店
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();
它的执行没有错误,但该证书不出现在“虚拟主机“商店。我如何将它导入该商店?
是的,我在网络服务器上运行它。并在mmc证书下,你可以找到文件夹webhosting,我想要导入它。 –