How to remove SSL bindings using powershell

后端 未结 3 519
后悔当初
后悔当初 2021-02-06 23:56

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 an

相关标签:
3条回答
  • 2021-02-07 00:22

    Use netsh http delete sslcert ipport=0.0.0.0:443 to delete a SSL: example:

    $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
    
    0 讨论(0)
  • 2021-02-07 00:33

    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
    
    0 讨论(0)
  • 2021-02-07 00:33

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

    0 讨论(0)
提交回复
热议问题