【发布时间】:2018-10-30 14:32:38
【问题描述】:
我正在尝试列出所有 IIS 站点及其相关的证书指纹。
我真的只是想要这样
IIS 站点,指纹。
看起来很简单,但我这辈子都做不到。 (注意我想要actaull IIS 站点,而不是友好名称或证书主题)
我可以单独获取它们,但我如何加入它以显示两者。
$sites = Get-Website | ? { $_.State -eq "Started" } | % { $_.Name }
$certs = Get-ChildItem IIS:SSLBindings | ? {
$sites -contains $_.Sites.Value
} | % { $_.Thumbprint }
【问题讨论】:
标签: powershell iis certificate windows-server-2012