简体   繁体   English

从脚本向证书存储添加证书的方法

[英]Ways to add a certificate to the certificate store from a script

I want to install a certificate in the certificate store. 我想在证书存储中安装证书。 Is there a way to do it from a script. 有没有一种方法可以通过脚本来完成。 Meaning one of the following is true: 意思是以下之一:

  • There is a console utility, which then can be invoked from a batch script. 有一个控制台实用程序,然后可以从批处理脚本中调用它。
  • There is a COM object, which can be instantiated from a VB script. 有一个COM对象,可以从VB脚本实例化。
  • Adding to the certificate store boils down to some basic operations (like registry or file system changes), which can then be performed from a script. 添加到证书存储区可以归结为一些基本操作(例如注册表或文件系统更改),然后可以从脚本中执行这些操作。

There may exist other options, which I do not see. 可能存在其他选项,我看不到。 In anyway, I want to be able to install into the certificate store of my choice in the unattended mode. 无论如何,我希望能够以无人参与模式安装到我选择的证书存储中。

Thanks. 谢谢。

可以从命令行使用CertMgr.exe

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM