Skip to content

Commit

Permalink
Merge "C# Installer: Enable TLS 1.2 support"
Browse files Browse the repository at this point in the history
  • Loading branch information
mduft authored and Gerrit Code Review committed Feb 4, 2021
2 parents 2f643e9 + 49e86ca commit abbfd5e
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 abbfd5e

Please sign in to comment.