@@ -45,7 +45,12 @@ public class IisInstallerProvider : IInstallerProvider
45
45
ParameterType . BOOLEAN , label : "Force" ,
46
46
desc : "An optional flag to overwrite an existing binding matching the target criteria" ) ;
47
47
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 (
49
54
nameof ( IisInstaller . CertificateFriendlyName ) ,
50
55
ParameterType . TEXT , label : "Certificate Friendly Name" ,
51
56
desc : "An optional user-facing label to assign the certificate"
@@ -59,7 +64,8 @@ public class IisInstallerProvider : IInstallerProvider
59
64
BINDING_HOST ,
60
65
BINDING_HOST_REQUIRED ,
61
66
FORCE ,
62
- CERTIFICATE_FRIENDLY_NAME ,
67
+ KEEPEXISTINGSSLFLAGS ,
68
+ CERTIFICATE_FRIENDLY_NAME ,
63
69
} ;
64
70
65
71
public IEnumerable < ParameterDetail > DescribeParameters ( )
@@ -89,7 +95,9 @@ public IInstaller GetInstaller(IReadOnlyDictionary<string, object> initParams)
89
95
( bool x ) => inst . BindingHostRequired = x ) ;
90
96
initParams . GetParameter ( FORCE ,
91
97
( 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 ,
93
101
( string x ) => inst . CertificateFriendlyName = x ) ;
94
102
95
103
return inst ;
0 commit comments