2011-05-12 112 views
18

我使用Remove-WebBinding -Port $Port -Protocol https删除Web绑定。这从相关的网站结合,但结合继续存在,如果我尝试分配这些未使用的绑定我的错误 SSL绑定的可以找我分配给任何网站如何使用PowerShell删除SSL绑定

IIS:\SslBindings但不是下一个条目为终点0.0.0.0:38000已经存在。

问题是我应该使用哪个cmdlet删除绑定或从IIS中删除条目:\ SslBinding?

问候, 哎呀

回答

20

怎么样使用Remove-Item

例子:

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 
+0

谢谢JPBlanc这样做的工作,但在那里,将做到这在WebAdministration模块定义的任何cmdlet的? – JeeZ 2011-05-16 07:38:43

+0

对不起,我不知道。 – JPBlanc 2011-05-16 15:44:56

2

利用Netsh http删除sslcert ipport = 0.0.0.0: 443删除SSL: 例如:

$DelSsl = netsh http delete sslcert ipport=0.0.0.0:443 
$DelSsl 
$Ssl = netsh http add sslcert ipport=0.0.0.0:443 certhash=$certhash appid=$appid 
$Ssl