且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何将证书添加到Windows证书存储区?

更新时间:2022-06-24 08:28:49

你好我认为这应该有用



hello I think this should work

X509Store store = new X509Store(StoreName.My, StoreLocation. LocalMachine);
store.Open(OpenFlags.ReadWrite);
store.Add(new X509Certificate2(X509Certificate2.CreateFromCertFile(certificateFilePath)));
store.Close();