diff --git a/certy.ps1 b/certy.ps1 index 7cd0382..81c44e6 100644 --- a/certy.ps1 +++ b/certy.ps1 @@ -1,1018 +1,816 @@ -Add-Type -AssemblyName PresentationFramework, PresentationCore, WindowsBase, System.Xaml +Set-StrictMode -Version Latest +$ErrorActionPreference = "Stop" + Add-Type -AssemblyName System.Windows.Forms +Add-Type -AssemblyName System.Drawing -$scriptRoot = Split-Path -Parent $MyInvocation.MyCommand.Path -$defaultSettingsPath = Join-Path $scriptRoot "certy.settings.json" -$defaultLogPath = Join-Path $scriptRoot "certy.log" - -$xaml = @' - - - - - - - - - - - - - - - - - - -