microsoft / CSS-Exchange

Exchange Server support tools and scripts
MIT License
1.21k stars 332 forks source link

[Issue] - Health Checker - IIS Information showing NULL Certificate with more detail #2055

Closed MarcoLFrancisco closed 2 weeks ago

MarcoLFrancisco commented 3 months ago

Provide Version Number Version 24.03.12.1700

Describe the issue Incorrect Back End Certificate Value on IIS Settings when Back End Certificate is removed using Remove-ExchangeCertificate and not present at server. The removed certificate thumbprint is shown in IIS Information result and it should show no certificate as shown in IIS

image

Expected behavior IIS BE Certificate should show Null.

Can be corrected by setting $certHash to Null when $cert is $null for Exchange Enabled Certificate Bindings. Needs to be checked what is behaviour if non Exchange Cetificate is assigned to BE in IIS (not sure if supported in Exchange)

image

image

Script Output

If applicable, add the exception that wasn't handled.

Additional context

How to reproduce: