private static void InstallCertificate(string cerFileName, string cerPass ) { X509Certificate2 certificate ; if (String.IsNullOrEmpty(cerPass)) certificate = new X509Certificate2(filename); else certificate = new X509Certificate2(cerFileName,cerPass); X509Store store = new X509Store(StoreName.TrustedPublisher, StoreLocation.LocalMachine); store.Open(OpenFlags.ReadWrite); store.Add(certificate); store.Close(); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)