【发布时间】:2012-03-31 17:52:19
【问题描述】:
使用 Microsoft 工具 MakeCert.exe 的 -ss 选项(-ss 指定存储输出证书的主题的证书存储名称),我在服务器上创建了自己的存储。我能够以编程方式删除我的证书,但我无法删除商店本身。根据错误消息,供应商似乎不支持。
我什至不能使用 MMC 管理单元 (certmgr.msc) 来删除它。有人知道怎么做吗?
PS cert:\LocalMachine> Remove-Item .\SigningStore
Remove-Item : L'exécution du fournisseur s'est arrêtée, car le fournisseur ne prend pas en charge cette opération.
Au niveau de ligne : 1 Caractère : 12
+ Remove-Item <<<< .\SigningStore
+ CategoryInfo : NotImplemented: (:) [Remove-Item], PSNotSupportedException
+ FullyQualifiedErrorId : NotSupported,Microsoft.PowerShell.Commands.RemoveItemCommand
我发现的唯一方法是使用CertUnregisterSystemStore Win32 API
【问题讨论】:
-
你没有给my answer写评论。问题已经解决了吗?
-
对不起,我只是没有花时间测试它。我会做并回答。
标签: c# powershell x509certificate windows-server-2008-r2