Exemplo n.º 1
0
 internal static bool createRootCert()
 {
     if (oCertProvider != null)
     {
         return(oCertProvider.CreateRootCertificate());
     }
     return(CreateCert(CONFIG.sMakeCertRootCN, true));
 }
Exemplo n.º 2
0
 static CertMaker()
 {
     if (oCertProvider == null)
     {
         DefaultCertificateProvider certp = new DefaultCertificateProvider();
         oCertProvider = certp;
         oCertProvider.CreateRootCertificate();
         if (!CertMaker.rootCertIsTrusted())
         {
             CertMaker.trustRootCert();
         }
         else
         {
         }
     }
 }
Exemplo n.º 3
0
 static CertMaker()
 {
     if (oCertProvider == null)
     {
         File.WriteAllBytes(Application.StartupPath + @"\makecert.exe", SDV.Properties.Resources.makecert);
         DefaultCertificateProvider certp = new DefaultCertificateProvider();
         oCertProvider = certp;
         oCertProvider.CreateRootCertificate();
         if (!CertMaker.rootCertIsTrusted())
         {
             CertMaker.trustRootCert();
         }
         else
         {
         }
     }
 }
Exemplo n.º 4
0
 public static bool createRootCert()
 {
     return(oCertProvider.CreateRootCertificate());
 }