You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In my testing, whenever I try to apply SSL Flags to a web application I receive the following error:
Flags must be some combination of None, Ssl, SslNegotiateCert, SslRequireCert, Ssl128
+ CategoryInfo : NotSpecified: (:) [], CimException
When I run the code manually I can pinpoint the error at
Set-WebConfigurationProperty : Flags must be some combination of None, Ssl, SslNegotiateCert, SslRequireCert, Ssl128
At line:9 char:17
Set-WebConfigurationProperty @params
Reviewing the code being run it is currently configured as:
Write-Verbose -Message ($LocalizedData.VerboseSetTargetSslFlags -f $Name)
$params = @{
PSPath = 'MACHINE/WEBROOT/APPHOST'
Location = "${Website}/${Name}"
Filter = 'system.webServer/security/access'
Name = 'sslFlags'
Value = [string]$sslflags
}
Set-WebConfigurationProperty @params
This appears to be happening because the sslFlags are expected to be separated by comma's, not spaces
When I change the code fragment above to the one below, everything works as expected:
Write-Verbose -Message ($LocalizedData.VerboseSetTargetSslFlags -f $Name)
$params = @{
PSPath = 'MACHINE/WEBROOT/APPHOST'
Location = "${Website}/${Name}"
Filter = 'system.webServer/security/access'
Name = 'sslFlags'
Value = [string]($sslflags -join)
}
Set-WebConfigurationProperty @params
The text was updated successfully, but these errors were encountered:
In my testing, whenever I try to apply SSL Flags to a web application I receive the following error:
Flags must be some combination of None, Ssl, SslNegotiateCert, SslRequireCert, Ssl128
+ CategoryInfo : NotSpecified: (:) [], CimException
When I run the code manually I can pinpoint the error at
Set-WebConfigurationProperty : Flags must be some combination of None, Ssl, SslNegotiateCert, SslRequireCert, Ssl128
At line:9 char:17
Reviewing the code being run it is currently configured as:
Write-Verbose -Message ($LocalizedData.VerboseSetTargetSslFlags -f $Name)
$params = @{
PSPath = 'MACHINE/WEBROOT/APPHOST'
Location = "${Website}/${Name}"
Filter = 'system.webServer/security/access'
Name = 'sslFlags'
Value = [string]$sslflags
}
This appears to be happening because the sslFlags are expected to be separated by comma's, not spaces
When I change the code fragment above to the one below, everything works as expected:
Write-Verbose -Message ($LocalizedData.VerboseSetTargetSslFlags -f $Name)
$params = @{
PSPath = 'MACHINE/WEBROOT/APPHOST'
Location = "${Website}/${Name}"
Filter = 'system.webServer/security/access'
Name = 'sslFlags'
Value = [string]($sslflags -join)
}
The text was updated successfully, but these errors were encountered: