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.
  • 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.

Answers


CertMgr.exe can be used from the command line.


Need Your Help

Check input data by MySQL schema or PHP?

php mysql database validation schema

Suppose I'd like to check whether a comment is duplicated or not.

(Excel) Lookup where lookup value isn't exactly in the array

arrays excel lookup vlookup lookup-tables

Background: I usually do "full reviews" on select categories during months 5, 8, 9, and 12, where an excerpt of this schedule can be seen in the image below (F1:I13). For example, for category 101 I

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.