Importing a Cert File via Command Prompt

G

Guest

I'm trying to import a .cer file to the computer store using certutil.exe on
a standalone machine. Does anyone know the proper sytax for this
 
C

Carey Frisch [MVP]

D

David H. Lipman

I don't think you can do that with CERTUTIL.EXE. You have to use the GUI unless you use the
Crptographic Toolkit Utility, CERTMGR.EXE.

certmgr -add -c Certificate.cer -s -r localmachine root

Sorry, I don't have a URL to get the Cryptographic Tool Kit.

I can point you to the right place to ask... microsoft.public.security.crypto

Dave




| I'm trying to import a .cer file to the computer store using certutil.exe on
| a standalone machine. Does anyone know the proper sytax for this
 
T

Torgeir Bakken \(MVP\)

Jim said:
I'm trying to import a .cer file to the computer store using certutil.exe
on a standalone machine. Does anyone know the proper sytax for this
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/[email protected]


Download certmgr.exe from:

Authenticode for Internet Explorer 5.0
http://www.microsoft.com/downloads/...95-d0f0-4a66-b27f-22a95fcd3425&displaylang=en


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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top