Import a bunch of certificates into the correct certificate store using a script
Posted
by
Jesse Weigert
on Server Fault
See other posts from Server Fault
or by Jesse Weigert
Published on 2010-01-28T00:39:31Z
Indexed on
2012/07/09
3:17 UTC
Read the original article
Hit count: 483
I have a collection of certificates in a p7b file, and I would like to automatically import each certificate into the correct store depending on the certificate template. What is the best way to do this with a script?
I tried using certutil -addstore root Certificate.p7b
, and that will correctly place all of the root CAs into the root store, but it returns an error if it encounters any other type of certificate.
I'm willing to use batch scripts, vbscript or powershell to accomplish this task. Thanks!
© Server Fault or respective owner