public void TestCleanup() { CertConfigCmd.RemoveIpEndPoints(_testingCertThumbprint); DoInLocalMachineCertStores(certStore => { var certs = certStore.Certificates.Find(X509FindType.FindByThumbprint, _testingCertThumbprint, false); certStore.RemoveRange(certs); }); }