如何使用PowerShell删除SSL绑定 [英] How to remove SSL bindings using powershell

查看:157
本文介绍了如何使用PowerShell删除SSL绑定的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用 Remove-WebBinding -Port $ Port -Protocol https 删除网页绑定。这将从关联的站点中删除绑定,但绑定仍然存在,我可以在 IIS下找到一个条目:\ SslBindings 但未分配给任何站点

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

如果我尝试分配任何这些未使用的绑定,我会收到错误
已经存在终点0.0.0.0:38000的SSL绑定。

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.

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

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

问候,
Jeez

Regards, Jeez

推荐答案

如何使用删除项目

示例:

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

这篇关于如何使用PowerShell删除SSL绑定的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆