Skip to content

Commit 370024c

Browse files
Bevan, John - Technical ArchitectBevan, John - Technical Architect
authored andcommitted
ebekker#352 - allow ssl flags to remain unchanged
1 parent 6ebd8ac commit 370024c

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

ACMESharp/ACMESharp.Providers.IIS/IisInstallerProvider.cs

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,12 @@ public class IisInstallerProvider : IInstallerProvider
4545
ParameterType.BOOLEAN, label: "Force",
4646
desc: "An optional flag to overwrite an existing binding matching the target criteria");
4747

48-
public static readonly ParameterDetail CERTIFICATE_FRIENDLY_NAME = new ParameterDetail(
48+
public static readonly ParameterDetail KEEPEXISTINGSSLFLAGS = new ParameterDetail(
49+
nameof(IisInstaller.Force),
50+
ParameterType.BOOLEAN, label: "KeepExistingSslFlags",
51+
desc: "An optional flag to allow an existing binding to keep its SSL Flags as per the original binding");
52+
53+
public static readonly ParameterDetail CERTIFICATE_FRIENDLY_NAME = new ParameterDetail(
4954
nameof(IisInstaller.CertificateFriendlyName),
5055
ParameterType.TEXT, label: "Certificate Friendly Name",
5156
desc: "An optional user-facing label to assign the certificate"
@@ -59,7 +64,8 @@ public class IisInstallerProvider : IInstallerProvider
5964
BINDING_HOST,
6065
BINDING_HOST_REQUIRED,
6166
FORCE,
62-
CERTIFICATE_FRIENDLY_NAME,
67+
KEEPEXISTINGSSLFLAGS,
68+
CERTIFICATE_FRIENDLY_NAME,
6369
};
6470

6571
public IEnumerable<ParameterDetail> DescribeParameters()
@@ -89,7 +95,9 @@ public IInstaller GetInstaller(IReadOnlyDictionary<string, object> initParams)
8995
(bool x) => inst.BindingHostRequired = x);
9096
initParams.GetParameter(FORCE,
9197
(bool x) => inst.Force = x);
92-
initParams.GetParameter(CERTIFICATE_FRIENDLY_NAME,
98+
initParams.GetParameter(KEEPEXISTINGSSLFLAGS,
99+
(bool x) => inst.KeepExistingSslFlags = x);
100+
initParams.GetParameter(CERTIFICATE_FRIENDLY_NAME,
93101
(string x) => inst.CertificateFriendlyName = x);
94102

95103
return inst;

0 commit comments

Comments
 (0)