Esempio n. 1
0
 public static void ImportIntermediateCert(string privateCertificatePath, string thumbprint)
 {
     try
     {
         PrivateKeyManager.ImportPublicCert(privateCertificatePath,
                                            thumbprint,
                                            PrivateKeyManager.CertificateStores.CERT_SYSTEM_STORE_LOCAL_MACHINE, "CA");
     }
     catch
     {
         Console.WriteLine("Failed importing public key to the Other People certificate store");
     }
 }
Esempio n. 2
0
 private static void ImportPublicCert(string sPrivateCertPath, string m_sThumb)
 {
     try
     {
         PrivateKeyManager.ImportPublicCert(sPrivateCertPath,
                                            m_sThumb,
                                            PrivateKeyManager.CertificateStores.CERT_SYSTEM_STORE_LOCAL_MACHINE, "AddressBook");
     }
     catch
     {
         Console.WriteLine("Failed importing public key to the Other People certificate store");
     }
 }
Esempio n. 3
0
 private static void ImportPublicRootCert(string sPrivateCertPath)
 {
     try
     {
         PrivateKeyManager.ImportPublicCert(sPrivateCertPath,
                                            null,
                                            PrivateKeyManager.CertificateStores.CERT_SYSTEM_STORE_LOCAL_MACHINE, "Root");
     }
     catch
     {
         Console.WriteLine("Failed importing root public key to the Trusted Root Certification Authorities certificate store");
     }
 }