Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to remove SSL bindings using powershell

Tags:

I use Remove-WebBinding -Port $Port -Protocol https to remove a web binding. This removes the binding from the associated site but the binding continues to exist and I can find an entry under IIS:\SslBindings but not assigned to any site

If i try to assign any of these unused binding i get the error SSL binding for end point 0.0.0.0:38000 already exists.

question is which cmdlet should I use to delete the binding or to remove the entry from IIS:\SslBinding ?

Regards, Jeez

like image 437
Jeevan Avatar asked May 12 '11 11:05

Jeevan


2 Answers

What about using Remove-Item :

Example :

PS> dir IIS:\SslBindings  IP Address       Port Store            Sites ----------       ---- -----            ----- 0.0.0.0          8172 MY 0.0.0.0          9000 My  PS> Remove-Item -path "IIS:\SslBindings\0.0.0.0!9000" PS> dir IIS:\SslBindings  IP Address       Port Store            Sites ----------       ---- -----            ----- 0.0.0.0          8172 MY 
like image 134
JPBlanc Avatar answered Sep 25 '22 11:09

JPBlanc


Of course there is a WebAdministration cmdlet : Remove-WebBinding
http://technet.microsoft.com/en-us/library/ee790591.aspx

like image 40
fab777 Avatar answered Sep 25 '22 11:09

fab777