Skip to content

Commit 0aea991

Browse files
rcpokornyspbsolubleBob PokornyKeyfactor
authored
release: 2.6.4
ab78669 internal track. * Fixed an issue with SSL flags greater than 3 weren't updating IIS properly. * Fixed formatting of private SSH key when creating a temp file when using ssh. * Fixed an ACL issue on SQL Private Keys when using SSH to connect to the Windows Server. * Updated Documentation to indicate the username and password fields are automatically added via Command. --------- Co-authored-by: Sean <[email protected]> Co-authored-by: Bob Pokorny <[email protected]> Co-authored-by: Keyfactor <[email protected]>
1 parent eb1f50d commit 0aea991

File tree

38 files changed

+906
-146
lines changed

38 files changed

+906
-146
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
2+
2.6.4
3+
* Fixed an issue with SSL Flags greater than 3 were not being applied correctly to newer IIS servers.
4+
* Fixed an issue when formatting private RSA keys when connecting using the ssh protocol.
5+
* When using ssh protocol in containers, the SQL ACL on private keys was not being updating correctly. This has been fixed.
6+
* Updated documentation to indicate that the username and password fields on the Cert Store are automatically added by Command.
7+
18
2.6.3
29
* Fixed re-enrollment or ODKG job when RDN Components contained escaped commas.
310
* Updated renewal job for IIS Certs to delete the old cert if not bound or used by other web sites.

IISU/PSHelper.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -635,9 +635,10 @@ private string createPrivateKeyFile()
635635

636636
private static string formatPrivateKey(string privateKey)
637637
{
638-
String keyType = privateKey.Contains("OPENSSH PRIVATE KEY") ? "OPENSSH" : "RSA";
638+
string header = privateKey.Substring(0, privateKey.IndexOf("KEY-----") + 8);
639+
string footer = privateKey.Substring(privateKey.IndexOf("-----END"));
639640

640-
return privateKey.Replace($" {keyType} PRIVATE ", "^^^").Replace(" ", System.Environment.NewLine).Replace("^^^", $" {keyType} PRIVATE ") + System.Environment.NewLine;
641+
return privateKey.Replace(header, "HEADER").Replace(footer, "FOOTER").Replace(" ", Environment.NewLine).Replace("HEADER", header).Replace("FOOTER", footer) + Environment.NewLine;
641642
}
642643
}
643644
}

IISU/PowerShellScripts/WinCertScripts.ps1

Lines changed: 603 additions & 94 deletions
Large diffs are not rendered by default.

README.md

Lines changed: 271 additions & 28 deletions
Large diffs are not rendered by default.
-86 Bytes
Loading
2 Bytes
Loading
20.2 KB
Loading
19.7 KB
Loading
20.6 KB
Loading
16.7 KB
Loading

0 commit comments

Comments
 (0)