internal static bool createRootCert() { if (oCertProvider != null) { return(oCertProvider.CreateRootCertificate()); } return(CreateCert(CONFIG.sMakeCertRootCN, true)); }
static CertMaker() { if (oCertProvider == null) { DefaultCertificateProvider certp = new DefaultCertificateProvider(); oCertProvider = certp; oCertProvider.CreateRootCertificate(); if (!CertMaker.rootCertIsTrusted()) { CertMaker.trustRootCert(); } else { } } }
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 { } } }
public static bool createRootCert() { return(oCertProvider.CreateRootCertificate()); }