I use the following code to bind a certificate with an SSL binding, which I added
$thumb = (Get-ChildItem cert:\LocalMachine\My | where-object { $_.Subject -like $wildCardSubject } | Select-Object -First 1).Thumbprint Push-Location IIS:\SslBindings Get-Item cert:\LocalMachine\My\$thumb | New-Item $ipAddress!$port Pop-Location
This works fine without errors. After starting this, if I open the bindings user interface for this website from IIS Manager, I donβt see any certificate attached to the binding. Am I missing something here?
In a similar topic, if I use a common certificate between two websites, what care should I take to ensure that ssl bindings are added / removed? I see the following problems when this is done from the IIS Manager interface
- When you add a second binding, it gives a warning that the certificate is already in use by another site. I am still continuing and everything is working, not sure what is going on behind the scenes.
- When you remove a binding, it gives a warning that the certificate is used in another binding, and removing this binding will make it impossible to use other links. Even so, I continue, and the other site is working fine
Suhas source share