Add -HostName parameter to Set-SPCentralAdministration
Set-SPCentralAdministration allows us to move CA to SSL on port 443, but it does not support hostname binding. We have a web application on port 443 that's NOT using SNI (to support HNSC, for example) and want to run CA on port 443 as well, without using different IP's. The initial configuration for this is fairly simple, setting the AAM with Set-SPAlternateUrl and adding the binding in IIS. However, running psconfigUI.exe on the CA server will wipe out the IIS binding (changing back to HTTP) and add another AAM for the HTTP binding.
A workaround is to Remove-SPWebApplication with -DeleteIisSite and then New-SPWebApplicationExtension, using -HostName, -Port, and -SecureSocketsLayer. This makes SharePoint aware of all IIS binding info, including the hostname, so that running the config wizard will keep everything intact. However, it seems like it would be much easier to be able to set this binding info without deleting and recreating the web app.
I propose adding the -HostName parameter to Set-SPCentralAdministration to be able to update the bindinginfo in place. Bonus points if it can set the AAM as well without a separate call to Set-SPAlternateUrl.