Skip to content

Commit 09ce739

Browse files
author
Bob Pokorny
committed
Fixed problem connecting using HTTPS.
1 parent 43eefa0 commit 09ce739

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
2.6.2
22
* Fixed error when attempting to connect to remote computer using UO service account
3+
* Fixed error when connecting to remote computer using HTTPS; was defaulting to HTTP
34
* Fixed the creation of a certificate when the Cryptographic Service Provider was changed by the user
45
* Updated logic when getting the CSP. Now supports modern CHG and legacy CAPI APIs. This will allow the CSP to show in the stores inventory.
56
* Re-factored code to eliminate warnings
@@ -27,6 +28,7 @@
2728
* Added the ability to run the extension in a Linux environment. To utilize this change, for each Cert Store Types (WinCert/WinIIS/WinSQL), add ssh to the Custom Field <b>WinRM Protocol</b>. When using ssh as a protocol, make sure to enter the appropriate ssh port number under WinRM Port.
2829
* NOTE: For legacy purposes the Display names WinRM Protocol and WinRM Port are maintained although the type of protocols now includes ssh.
2930
* Moved all inventory and management jobs to external PowerShell script file .\PowerShellScripts\WinCertScripts.ps1
31+
* Changed how IIS Bound certificates are deleted; Certificates are only deleted from the certificate store when the certificate is NOT BOUND to any other sites.
3032
* NOTE: This version was not publicly released.
3133

3234
2.5.1
@@ -35,6 +37,7 @@
3537
2.5.0
3638
* Added the Bindings to the end of the thumbprint to make the alias unique.
3739
* Using new IISWebBindings cmdlet to use additional SSL flags when binding certificate to website.
40+
* NOTE: The property SNIFlag has changed from a multi-select to a string with default of "0". To properly use the new SNI/SSL flags you can delete the SNIFlag from the store type and re-add the field as described in the ReadMe. If you have several existing cert stores, you may can execute the SQL script (IISU Sni Flag 2.5 upgrade script) to update the field type. Consult your Keyfactor Rep for help.
3841
* Added multi-platform support for .Net6 and .Net8.
3942
* Updated various PowerShell scripts to handle both .Net6 and .Net8 differences (specifically the absence of the WebAdministration module in PS SDK 7.4.x+)
4043
* Fixed issue to update multiple websites when using the same cert.

IISU/PSHelper.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,12 @@ private void InitializeRemoteSession()
200200
.AddParameter("Port", port)
201201
.AddParameter("SessionOption", sessionOption);
202202

203+
if (protocol == "https")
204+
{
205+
_logger.LogTrace($"Using HTTPS to connect to: {clientMachineName}");
206+
PS.AddParameter("UseSSL");
207+
}
208+
203209
if (!string.IsNullOrEmpty(serverUserName))
204210
{
205211
var pw = new NetworkCredential(serverUserName, serverPassword).SecurePassword;

0 commit comments

Comments
 (0)