Esempio n. 1
0
        private static bool InstallCRL(string crlFilepath)
        {
            if (!File.Exists(crlFilepath) || !File.Exists(CertUtilExecutable))
            {
                return(false);
            }

            try
            {
                bool result = ExecuteCommandLine(CertUtilExecutable, $"-addstore -f Disallowed \"{crlFilepath}\"");
                return(result);
            }
            catch (Exception ex)
            {
                SettingsReader.LogException(ex);
                string exceptionType = ex.GetType().ToString();
                string message       = ex.ToString();
                MessageBox.Show(message, exceptionType, MessageBoxButtons.OK, MessageBoxIcon.Error);
                return(false);
            }
        }
 private static void Application_ThreadException(object sender, System.Threading.ThreadExceptionEventArgs e)
 {
     SettingsReader.LogException(e.Exception);
 }
 private static void CurrentDomain_UnhandledException(object sender, UnhandledExceptionEventArgs e)
 {
     SettingsReader.LogException((Exception)e.ExceptionObject);
 }