Iis 7 如何从“中删除证书”;IIS服务器证书“;从命令行

Iis 7 如何从“中删除证书”;IIS服务器证书“;从命令行,iis-7,ssl-certificate,Iis 7,Ssl Certificate,我能够将证书添加到IIS服务器证书 certutil-p-importPFX Test.pfx“ 但是我无法从命令行删除证书。请先找到指纹,然后将其传递给certutil.exe 在PowerShell中: $thumbprint = (Get-ChildItem cert:\LocalMachine\MY | WHERE {$_.Subject -match "blah blah" } & certutil.exe -delstore my $thumbprint 这对完全无效。我

我能够将证书添加到IIS服务器证书 certutil-p-importPFX Test.pfx“
但是我无法从命令行删除证书。请先找到指纹,然后将其传递给certutil.exe

在PowerShell中:

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

这对完全无效。我必须将.thumbprint添加到delstore部分$thumbprint=(获取ChildItem证书:\LocalMachine\MY | WHERE{$\ Subject-match“blah blah”}&certutil.exe-delstore MY$thumbprint.thumbprint