Installing certificates via batch file - possible?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi

We have a couple of security certificates that need adding to a lot of
clients and we are contemplating many ways to do this. They are to be
imported into the:

Trusted Root Certification Authorities\Local Computer

and I'm wondering is there a silent batch file that can be tun to accomplish
what i want? i.e. something that could be put into the startup of some
clients?

Thank you for your time
 
Danny said:
We have a couple of security certificates that need adding to a lot of
clients and we are contemplating many ways to do this. They are to be
imported into the:

Trusted Root Certification Authorities\Local Computer

and I'm wondering is there a silent batch file that can be tun to accomplish
what i want? i.e. something that could be put into the startup of some
clients?

Thank you for your time
Hi,

You can use the command line utility certmgr.exe for this, a
cryptoAPI/Authenticode tool from MS.

To add a certificate to the "Trusted Root Certification Authorities"
in localMachine:

certmgr.exe -add -c "<cert-file>" -s -r localMachine root

where <cert-file> is the path to the certificate file.


Current users personal certificate store command line:
http://groups.google.com/group/micr...r.scripting/msg/4ac94c56ac6c7b67?dmode=source


The download location for certmgr.exe at Microsoft have been removed,
but you can use the one that is inside this zip file:
http://myitforum.techtarget.com/inc/upload/6285cert.zip


More information can be found here:

Certificate Manager Tool (Certmgr.exe)
http://msdn.microsoft.com/library/d...tml/cpgrfcertificatemanagertoolcertmgrexe.asp

Using CertMgr
http://msdn.microsoft.com/library/en-us/security/security/using_certmgr.asp
 
Back
Top