PowerShell returns a certificate thumbprint from WSMan with spaces between each byte. I discovered this broke some of the conditional logic detecting a mismatch in the current cert vs the ideal cert. I then changed the code to trim the spaces between bytes, but on some machines this will break the listener. We need to 1) remove the code that trims the spaces from the thumbprint, and 2) update the conditional logic to trim the spaces back out, but not save the changes to the variable.
PowerShell returns a certificate thumbprint from WSMan with spaces between each byte. I discovered this broke some of the conditional logic detecting a mismatch in the current cert vs the ideal cert. I then changed the code to trim the spaces between bytes, but on some machines this will break the listener. We need to 1) remove the code that trims the spaces from the thumbprint, and 2) update the conditional logic to trim the spaces back out, but not save the changes to the variable.