简体   繁体   中英

Can I get a complete list of all HTTP bindings on an IIS Server?

In changing the SSL certificate in an HTTPS binding on an IIS website, I choose the new certificate, and then get the following message:

"At least one other site is using the same binding and the binding is configured with a different certificate. Are you sure that you want to reuse this HTTP binding and reassign the other site or sites to use the new certificate?"

This sounds ominously like it's going to DO something to the other site. Maybe several or even many other sites since they all use the same certificate.

There are hundreds of sites on this IIS server. I'd hate to have to go through them one at a time looking at bindings.

Is there a way to get a list of all HTTP bindings for all sites on the server so I can find whichever other site it is that is using this certificate?

You can try

Import-Module Webadministration
Get-ChildItem -Path IIS:\Sites

WebAdministration module will allow you to interact with IIS as well as a hierarchical view of the IIS installation.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM