【问题标题】:How to remove Certificate from "IIS server certificates" from command line如何从命令行从“IIS 服务器证书”中删除证书
【发布时间】:2015-07-16 06:47:55
【问题描述】:

我可以将证书添加到 IIS 服务器证书 certutil -p -importPFX Test.pfx" 但我无法从命令行删除证书

【问题讨论】:

    标签: iis-7 ssl-certificate


    【解决方案1】:

    先找到指纹,然后传给certutil.exe

    在 PowerShell 中:

    $thumbprint = (Get-ChildItem cert:\LocalMachine\MY | WHERE {$_.Subject -match "blah blah" } 
    & certutil.exe -delstore my $thumbprint
    

    【讨论】:

    • 这并不完全适用。我必须将 .thumbprint 添加到 delstore 部分 $thumbprint = (Get-ChildItem cert:\LocalMachine\MY | WHERE {$_.Subject -match "blah blah" } & certutil.exe -delstore my $thumbprint.thumbprint跨度>
    猜你喜欢
    • 2023-04-09
    • 2016-04-20
    • 2013-05-24
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-12-12
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多