如何以编程方式删除受信任的根证书颁发机构中的证书?
我需要能够从组织中的每台电脑中删除特定的证书。 是的,我可以逐个座位,但我要到周四才能完成,而且我没有人力逐个座位。
是否有使用 C# 的编程方式来执行此操作?
I need to be able to remove a specific certificate from each PC in my organization. Yes, I could go seat-to-seat, but I have until Thursday to pull it off, and I don't have the manpower to go seat-to-seat.
Is there a programmatic way of doing this using C#?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我认为您不需要编写任何 C# - 看看
certmgr.exe /del
。如果您今天确实想编写一些 C# 来实现此目的,请查看
X509Store.Remove
。I don't think you need to crank out any C# - take a look at
certmgr.exe /del
.If you really do want to write some C# today to do this, then take a look at
X509Store.Remove
.MSDN中有一个示例(点击此处)
我认为这个例子是不言自明的,但这里是摘录:
There's an example in MSDN (click here)
I think the example is self-explanatory, but here's the excerpt: