@@ -121,7 +121,7 @@ private AnyJobCompleteInfo PerformAddition(AnyJobConfigInfo config)
121121 Logger . Trace ( $ "Begin Add for Cert Store { $@ "\\{ config . Store . ClientMachine } \{ config . Store . StorePath } "} ") ;
122122
123123 using ( Runspace runspace = RunspaceFactory . CreateRunspace ( connInfo ) )
124- {
124+ {
125125 runspace . Open ( ) ;
126126 PowerShellCertStore psCertStore = new PowerShellCertStore ( config . Store . ClientMachine , config . Store . StorePath , runspace ) ;
127127 using ( PowerShell ps = PowerShell . Create ( ) )
@@ -162,10 +162,17 @@ function InstallPfxToMachineStore([byte[]]$bytes, [string]$password, [string]$st
162162 Get-WebBinding -Name ""{0}"" -IPAddress ""{1}"" -Port ""{2}"" -Protocol ""{3}"" |
163163 ForEach-Object {{ Remove-WebBinding -BindingInformation $_.bindingInformation }}
164164
165- New-WebBinding -Name ""{0}"" -IPAddress ""{1}"" -HostHeader ""{4}"" -Port ""{2}"" -Protocol ""{3}""
165+ New-WebBinding -Name ""{0}"" -IPAddress ""{1}"" -HostHeader ""{4}"" -Port ""{2}"" -Protocol ""{3}"" -SslFlags ""{7}""
166166 Get-WebBinding -Name ""{0}"" -Port ""{2}"" -Protocol ""{3}"" |
167167 ForEach-Object {{ $_.AddSslCertificate(""{5}"", ""{6}"") }}
168- }}" , storePath . SiteName , storePath . IP , storePath . Port , storePath . Protocol , storePath . HostName , x509Cert . Thumbprint , config . Store . StorePath ) ;
168+ }}" , storePath . SiteName , //{0}
169+ storePath . IP , //{1}
170+ storePath . Port , //{2}
171+ storePath . Protocol , //{3}
172+ storePath . HostName , //{4}
173+ x509Cert . Thumbprint , //{5}
174+ config . Store . StorePath , //{6}
175+ ( int ) storePath . SniFlag ) ; //{7}
169176
170177 ps . AddScript ( funcScript ) ;
171178 ps . Invoke ( ) ;
0 commit comments