Ejemplo 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);
            }
        }
Ejemplo n.º 2
0
 private static void Application_ThreadException(object sender, System.Threading.ThreadExceptionEventArgs e)
 {
     SettingsReader.LogException(e.Exception);
 }
Ejemplo n.º 3
0
 private static void CurrentDomain_UnhandledException(object sender, UnhandledExceptionEventArgs e)
 {
     SettingsReader.LogException((Exception)e.ExceptionObject);
 }