Repro:
$BindingInfo = @(
New-CimInstance -ClassName MSFT_xWebBindingInformation -Namespace root/microsoft/Windows/DesiredStateConfiguration -Property @{
Protocol = 'https'
IPAddress = '*'
Port = 443
HostName = 'api.bittitan.com'
CertificateThumbprint = '34AE59F4CFA28602716C46D172850747B36624D8'
CertificateStoreName = 'WebHosting'
SslFlags = 1
} -ClientOnly
New-CimInstance -ClassName MSFT_xWebBindingInformation -Namespace root/microsoft/Windows/DesiredStateConfiguration -Property @{
Protocol = 'https'
IPAddress = '*'
Port = 443
HostName = '*.migrationwiz.com'
CertificateThumbprint = 'DE0A409C2F2BF8DF47C9154EDE3C3309CAB9E0F7'
CertificateStoreName = 'WebHosting'
SslFlags = 1
} -ClientOnly
)
Update-WebsiteBinding -Name MigrationWiz -BindingInfo $BindingInfo
Despite different CertificateThumbprint specified for the first and second binding BOTH get the same (first) certificate assigned!
Repro:
Despite different CertificateThumbprint specified for the first and second binding BOTH get the same (first) certificate assigned!