예제 #1
0
        public static bool rootCertIsMachineTrusted()
        {
            bool flag;
            bool flag2;

            oCertProvider.rootCertIsTrusted(out flag, out flag2);
            return(flag2);
        }
예제 #2
0
 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);
 }