From 50eeaf84979da23e34bfc303e7ff1fe9b861f2d3 Mon Sep 17 00:00:00 2001 From: Shaun Walker Date: Fri, 5 Nov 2021 16:01:00 -0400 Subject: [PATCH] add support for TrustServerCertificate connection string option for SQL Server --- .../Installer/Controls/SqlServerConfig.razor | 14 ++++++++++++++ .../Installer/Controls/SqlServerConfig.resx | 12 ++++++++++++ 2 files changed, 26 insertions(+) diff --git a/Oqtane.Client/Installer/Controls/SqlServerConfig.razor b/Oqtane.Client/Installer/Controls/SqlServerConfig.razor index 28192be0..021ba776 100644 --- a/Oqtane.Client/Installer/Controls/SqlServerConfig.razor +++ b/Oqtane.Client/Installer/Controls/SqlServerConfig.razor @@ -48,6 +48,18 @@ +@if (_encryption == "true") +{ +
+ +
+ +
+
+} @code { private string _server = String.Empty; @@ -56,6 +68,7 @@ private string _uid = String.Empty; private string _pwd = String.Empty; private string _encryption = "false"; + private string _trustservercertificate = "false"; public string GetConnectionString() { @@ -75,6 +88,7 @@ connectionString += $"User ID={_uid};Password={_pwd};"; } connectionString += $"Encrypt={_encryption};"; + connectionString += $"TrustServerCertificate={_trustservercertificate};"; return connectionString; } diff --git a/Oqtane.Client/Resources/Installer/Controls/SqlServerConfig.resx b/Oqtane.Client/Resources/Installer/Controls/SqlServerConfig.resx index 0f4ca4ac..b211c6aa 100644 --- a/Oqtane.Client/Resources/Installer/Controls/SqlServerConfig.resx +++ b/Oqtane.Client/Resources/Installer/Controls/SqlServerConfig.resx @@ -159,4 +159,16 @@ Specify if you are using an encrypted database connection. It is highly recommended to use encryption in a production environment. + + Self Signed + + + Specify the type of certificate you are using for encryption + + + Trust Server Certificate: + + + Verifiable + \ No newline at end of file