user1844634
user1844634

Reputation: 1263

How to remove Certificate from "IIS server certificates" from command line

I am able to add certificates to IIS server certificates certutil -p <> -importPFX Test.pfx" But i am unable to remove the certificate froom the command line

Upvotes: 1

Views: 2587

Answers (1)

Peter Hahndorf
Peter Hahndorf

Reputation: 11222

First find the thumbprint and then pass it to certutil.exe

In PowerShell:

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

Upvotes: 1

Related Questions