Hi Guys,
I have a question that google or the iis.net forums cant seem to answer. I can't find a way to use Set-WebBinding to change the port for an SSL bindings port number.
Bit of background. I want to switch the port numbers between a live site and a maintenance site so users can't get access while we are updating builds. Changing HTTP ports is simple, the HTTPS is a different matter:
HTTP (working)
Set-WebBinding -Name 'Public' -HostHeader "PUBLIC.TESTING.LOCAL" -IP "*" -Port 80 -PropertyName Port -Value 8000
HTTPS (not working)
Set-WebBinding -Name 'Maint' -IPAddress "*" -Port 443 -PropertyName Port -Value 4430
I don't know if its because there is no HostHeader on the https binding, or the Set-WebBinding doesn't like the command because a cert is applied to it (i've tried to pipe a get-item 0.0.0.0!443 into the Set-WebBinding and no go), but nothing I've tried will work. Running the command in Verbose mode doesn't throw anything juicy.
Any help is greatly appreciated!
Matt