From e062551fd7996b984189a9df700f5f028a57c052 Mon Sep 17 00:00:00 2001 From: rex706 Date: Tue, 14 Dec 2021 16:37:31 -0500 Subject: [PATCH] Allow all certificates --- Updater/MainWindow.xaml.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Updater/MainWindow.xaml.cs b/Updater/MainWindow.xaml.cs index 51e9bc2..c9a8e3d 100644 --- a/Updater/MainWindow.xaml.cs +++ b/Updater/MainWindow.xaml.cs @@ -31,6 +31,7 @@ public MainWindow() InitializeComponent(); ServicePointManager.Expect100Continue = true; ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12; + ServicePointManager.ServerCertificateValidationCallback = delegate { return true; }; Loaded += MainWindow_LoadedAsync; } @@ -66,7 +67,8 @@ private async void MainWindow_LoadedAsync(object sender, RoutedEventArgs e) try { // First two expected items in manifest will be the new version and the starting executable. - latest = Version.Parse(await reader.ReadLineAsync()); + string v = await reader.ReadLineAsync(); + latest = Version.Parse(v); executable = await reader.ReadLineAsync(); } catch (Exception m)