Skip to content

Commit e52ff34

Browse files
author
Bob Pokorny
committed
Updated checks found by CoPilot
1 parent 4d2bf8f commit e52ff34

File tree

2 files changed

+1
-11
lines changed

2 files changed

+1
-11
lines changed

IISU/ImplementedStoreTypes/WinIIS/Management.cs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -97,16 +97,6 @@ public JobResult ProcessJob(ManagementJobConfiguration config)
9797
// Assign the binding information
9898
IISBindingInfo bindingInfo = new IISBindingInfo(config.JobProperties);
9999

100-
// Check if the Ssl flags are set correctly
101-
if (bindingInfo.Protocol.ToLower() == "https" && string.IsNullOrEmpty(bindingInfo.SniFlag))
102-
{
103-
throw new ArgumentException("SniFlag must be set when using HTTPS protocol. Valid values are 0 (None), 1 (SNI Enabled), or 2 (IP Based).");
104-
}
105-
else if (bindingInfo.Protocol.ToLower() != "https")
106-
{
107-
bindingInfo.SniFlag = "0"; // Set to None if not using HTTPS
108-
}
109-
110100
_psHelper = new(protocol, port, includePortInSPN, _clientMachineName, serverUserName, serverPassword);
111101

112102
_psHelper.Initialize();

WindowsCertStore.IntegrationTests/Factories/ConfigurationFactory.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ public static IEnumerable<object[]> GetInventoryTestData()
8888
var testCases = new[]
8989
{
9090
new { Machine = "{IPAddressToClient}", Username = "{username}", Password = "{path_to_.ssh\\my_rsa}" },
91-
new { Machine = "{IUAddressToClient}", Username = "{username}", Password = "{path_to_.ssh\\my_rsa}" }
91+
new { Machine = "{IPAddressToClient}", Username = "{username}", Password = "{path_to_.ssh\\my_rsa}" }
9292
};
9393

9494
foreach (var testCase in testCases)

0 commit comments

Comments
 (0)