Skip to content

Commit

Permalink
C# Installer: Enable TLS 1.2 support
Browse files Browse the repository at this point in the history
Bug: DCS-1293
Change-Id: I68cd4589d5a1269f21050a2425e656499b427661
  • Loading branch information
mheiss authored and mduft committed Feb 4, 2021
1 parent 94b5bea commit 49e86ca
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 0 deletions.
Binary file modified launcher/src/win64/dist/BDeploy.exe
Binary file not shown.
Binary file modified launcher/src/win64/dist/FileAssoc.exe
Binary file not shown.
Binary file modified launcher/src/win64/dist/bin/Installer.bin
Binary file not shown.
5 changes: 5 additions & 0 deletions windows-apps/Installer/App.xaml.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using Bdeploy.Installer.Models;
using Bdeploy.Shared;
using System.Net;
using System.Threading.Tasks;
using System.Windows;

Expand All @@ -9,6 +10,10 @@ namespace Bdeploy.Installer {
/// </summary>
public partial class App : Application {
async void App_Startup(object sender, StartupEventArgs e) {
// Enforce usage of TLS 1.2
// We target .NET 4.5 and therefore we need to explicitly change the default
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;

// Whether or not to perform an unattended installation
bool unattended = Utils.HasArgument(e.Args, "/Unattended");
bool forAllUsers = Utils.HasArgument(e.Args, "/ForAllUsers");
Expand Down

0 comments on commit 49e86ca

Please sign in to comment.