// Convert the Filename to an X509 Certificate X509Certificate2 cert = new X509Certificate2(cerFilePath); // Get the server certificate store and pass to Personal Certificate Store(Check wih Certmgr.msc in Run) X509Store store = new X509Store(StoreName.My, StoreLocation.CurrentUser); store.Open(OpenFlags.ReadWrite); //Add the Certificate File to Windows Cetificate Store store.Add(new X509Certificate2(X509Certificate2.CreateFromCertFile(cerFilePath))); store.Close();</pre>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)