public static bool rootCertIsMachineTrusted() { bool flag; bool flag2; oCertProvider.rootCertIsTrusted(out flag, out flag2); return(flag2); }
internal static bool rootCertIsMachineTrusted() { if (oCertProvider != null) { bool flag; bool flag2; oCertProvider.rootCertIsTrusted(out flag, out flag2); return(flag2); } return(FindCertsBySubject(StoreName.Root, StoreLocation.LocalMachine, string.Format("CN={0}{1}", CONFIG.sMakeCertRootCN, CONFIG.sMakeCertSubjectO)).Count > 0); }