Microsoft "certutil -addstore -user my ..." - Import Certificate


How to import a certificate from a certificate file into a certificate store with Microsoft "certutil" tool?



If you want to import a certificate from a certificate file into a certificate store, you can use the Microsoft "certutil -addstore storename file_name" command as shown in this tutorial:

C:\fyicenter>\windows\system32\certutil -addstore -user my facebook.pem
Certificate "CN=*, O="Facebook, Inc.", L=Palo Alto,
S=California, C=US" added to store.
CertUtil: -addstore command completed successfully.

C:\fyicenter>\windows\system32\certutil -store -user my "*"
================ Certificate 0 ================
Serial Number: 017f77deb3bcbb235d44ccc7dba62e72
Issuer: Ref. LIABILITY LTD.(c)97 VeriSign, OU=
VeriSign International Server CA - Class 3, OU=VeriSign, Inc., O=VeriSign Trust
 NotBefore: 6/20/2012 7:00 PM
 NotAfter: 12/31/2013 6:59 PM
Subject: CN=*, O=Facebook, Inc., L=Palo Alto, S=California, C=US
Non-root Certificate
Cert Hash(sha1): f5 6b f2 44 63 b0 bd 61 36 c5 e8 72 34 6b 32 04 28 ff 4d 7c
No key provider information
Cannot find the certificate and private key for decryption.
CertUtil: -store command completed successfully.

As you can see from the output, the command works successfully:

  • The certificate in the download certificate file is imported into the "MY" certificate store at the current user store location.
  • "-addstore" option indicates the specified certificate file to be added to a certificate store
  • "-user my" option specifies "my" certificate store in the "Current User" store location to be used
  • "facebook.pem" option specifies the certificate file that contains the certificate to be imported.


Microsoft "certutil -addstore -f -user publisher ..." - Create a Store

Microsoft "certutil -addstore" Command Options

Microsoft "certutil" Commands on Certificate Stores

⇑⇑ Microsoft "certutil" - Certificate Management Tool

2013-03-01, 18747🔥, 0💬