Skip to content

Commit b661dcf

Browse files
authored
Release 2.2 (#91)
Reconcile 2.2 to main
1 parent f56bba1 commit b661dcf

25 files changed

+269
-69
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
2.2.2
2+
* Removed empty constructor to resolve PAM provider error when using WinCert store types
3+
4+
2.2.1
5+
* Fixed issue where https binding without cert was causing an error
6+
17
2.2.0
28
* Added Support for GMSA Account by using no value for ServerUsernanme and ServerPassword. KF Command version 10.2 or later is required to specify empty credentials.
39
* Added local PowerShell support, triggered when specifying 'localhost' as the client machine while using the IISU or WinCert Orchestrator. This change was tested using KF Command 10.3

IISU/ClientPSIIManager.cs

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -178,16 +178,17 @@ public JobResult BindCertificate(X509Certificate2 x509Cert)
178178
var bindings = ps.Invoke();
179179
foreach (var binding in bindings)
180180
{
181-
if (binding.Properties["Protocol"].Value.ToString().Contains("http"))
181+
if (binding.Properties["Protocol"].Value.ToString().Contains("https"))
182182
{
183183
_logger.LogTrace("Looping Bindings....");
184184
var bindingSiteName = binding.Properties["name"].Value.ToString();
185-
var bindingIpAddress = binding.Properties["Bindings"].Value.ToString()?.Split(':')[0];
186-
var bindingPort = binding.Properties["Bindings"].Value.ToString()?.Split(':')[1];
187-
var bindingHostName = binding.Properties["Bindings"].Value.ToString()?.Split(':')[2];
188-
var bindingProtocol = binding.Properties["Protocol"].Value.ToString();
189-
var bindingThumbprint = binding.Properties["thumbprint"].Value.ToString();
190-
var bindingSniFlg = binding.Properties["sniFlg"].Value.ToString();
185+
var bindingBindings = binding.Properties["Bindings"].Value.ToString()?.Split(':');
186+
var bindingIpAddress = bindingBindings?.Length > 0 ? bindingBindings[0] : null;
187+
var bindingPort = bindingBindings?.Length > 1 ? bindingBindings[1] : null;
188+
var bindingHostName = bindingBindings?.Length > 2 ? bindingBindings[2] : null;
189+
var bindingProtocol = binding.Properties["Protocol"]?.Value?.ToString();
190+
var bindingThumbprint = binding.Properties["thumbprint"]?.Value?.ToString();
191+
var bindingSniFlg = binding.Properties["sniFlg"]?.Value?.ToString();
191192

192193
_logger.LogTrace(
193194
$"bindingSiteName: {bindingSiteName}, bindingIpAddress: {bindingIpAddress}, bindingPort: {bindingPort}, bindingHostName: {bindingHostName}, bindingProtocol: {bindingProtocol}, bindingThumbprint: {bindingThumbprint}, bindingSniFlg: {bindingSniFlg}");

IISU/ImplementedStoreTypes/Win/Inventory.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,6 @@ public class Inventory : WinCertJobTypeBase, IInventoryJobExtension
3232
private ILogger _logger;
3333
public string ExtensionName => string.Empty;
3434

35-
public Inventory()
36-
{
37-
}
38-
3935
public Inventory(IPAMSecretResolver resolver)
4036
{
4137
_resolver = resolver;

IISU/ImplementedStoreTypes/Win/Management.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,6 @@ public class Management : WinCertJobTypeBase, IManagementJobExtension
3636

3737
private string _thumbprint = string.Empty;
3838

39-
public Management()
40-
{
41-
}
42-
4339
public Management(IPAMSecretResolver resolver)
4440
{
4541
_resolver= resolver;

IISU/Interfaces/ICertificateStoreDetailsBase.cs

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,17 @@
1-
using System;
1+
// Copyright 2022 Keyfactor
2+
//
3+
// Licensed under the Apache License, Version 2.0 (the "License");
4+
// you may not use this file except in compliance with the License.
5+
// You may obtain a copy of the License at
6+
//
7+
// http://www.apache.org/licenses/LICENSE-2.0
8+
//
9+
// Unless required by applicable law or agreed to in writing, software
10+
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
// See the License for the specific language governing permissions and
13+
// limitations under the License.
14+
using System;
215
using System.Collections.Generic;
316
using System.Text;
417

IISU/Interfaces/IInventoryCertStoreDetails.cs

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,17 @@
1-
namespace Keyfactor.Extensions.Orchestrator.WindowsCertStore
1+
// Copyright 2022 Keyfactor
2+
//
3+
// Licensed under the Apache License, Version 2.0 (the "License");
4+
// you may not use this file except in compliance with the License.
5+
// You may obtain a copy of the License at
6+
//
7+
// http://www.apache.org/licenses/LICENSE-2.0
8+
//
9+
// Unless required by applicable law or agreed to in writing, software
10+
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
// See the License for the specific language governing permissions and
13+
// limitations under the License.
14+
namespace Keyfactor.Extensions.Orchestrator.WindowsCertStore
215
{
316
internal interface IInventoryCertStoreDetails
417
{

IISU/Interfaces/IInventoryJobLogger.cs

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,17 @@
1-
using System;
1+
// Copyright 2022 Keyfactor
2+
//
3+
// Licensed under the Apache License, Version 2.0 (the "License");
4+
// you may not use this file except in compliance with the License.
5+
// You may obtain a copy of the License at
6+
//
7+
// http://www.apache.org/licenses/LICENSE-2.0
8+
//
9+
// Unless required by applicable law or agreed to in writing, software
10+
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
// See the License for the specific language governing permissions and
13+
// limitations under the License.
14+
using System;
215
using System.Collections.Generic;
316
using System.Text;
417

IISU/Interfaces/IJobConfigurationLoggerBase.cs

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,17 @@
1-
using Keyfactor.Orchestrators.Extensions;
1+
// Copyright 2022 Keyfactor
2+
//
3+
// Licensed under the Apache License, Version 2.0 (the "License");
4+
// you may not use this file except in compliance with the License.
5+
// You may obtain a copy of the License at
6+
//
7+
// http://www.apache.org/licenses/LICENSE-2.0
8+
//
9+
// Unless required by applicable law or agreed to in writing, software
10+
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
// See the License for the specific language governing permissions and
13+
// limitations under the License.
14+
using Keyfactor.Orchestrators.Extensions;
215
using System;
316
using System.Collections.Generic;
417
using System.Text;

IISU/Interfaces/IManagementCertStoreDetails.cs

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,17 @@
1-
using System;
1+
// Copyright 2022 Keyfactor
2+
//
3+
// Licensed under the Apache License, Version 2.0 (the "License");
4+
// you may not use this file except in compliance with the License.
5+
// You may obtain a copy of the License at
6+
//
7+
// http://www.apache.org/licenses/LICENSE-2.0
8+
//
9+
// Unless required by applicable law or agreed to in writing, software
10+
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
// See the License for the specific language governing permissions and
13+
// limitations under the License.
14+
using System;
215
using System.Collections.Generic;
316
using System.Text;
417

IISU/Interfaces/IManagementJobLogger.cs

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,17 @@
1-
using Keyfactor.Orchestrators.Common.Enums;
1+
// Copyright 2022 Keyfactor
2+
//
3+
// Licensed under the Apache License, Version 2.0 (the "License");
4+
// you may not use this file except in compliance with the License.
5+
// You may obtain a copy of the License at
6+
//
7+
// http://www.apache.org/licenses/LICENSE-2.0
8+
//
9+
// Unless required by applicable law or agreed to in writing, software
10+
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
// See the License for the specific language governing permissions and
13+
// limitations under the License.
14+
using Keyfactor.Orchestrators.Common.Enums;
215

316
namespace Keyfactor.Extensions.Orchestrator.WindowsCertStore
417
{

0 commit comments

Comments
 (0)