Import pfx file into particular certificate store from command line

后端 未结 7 1359
时光取名叫无心
时光取名叫无心 2021-01-30 17:12

It\'s relatively easy to import a certificate into the user\'s personal store from a pfx file by using CertUtil:

certutil –f –p [certificate_password] –importpfx         


        
7条回答
  •  一向
    一向 (楼主)
    2021-01-30 17:43

    Anchoring my findings here for future readers.

    Import certificate to Trusted Root Certification Authorities on Local Machine:

    CERTUTIL -addstore -enterprise -f -v root "somCertificat.cer"
    

    Import pfx to Personal on local machine

    CERTUTIL -f -p somePassword -importpfx "somePfx.pfx"
    

    Import pfx to Trusted People on local machine - Link to importpfx.exe

    importpfx.exe -f "somePfx.pfx" -p "somePassword" -t MACHINE -s "TRUSTEDPEOPLE"
    

    Import certificate to Trusted People on local machine

    Certutil -addstore -f "TRUSTEDPEOPLE" "someCertificate.cer"
    

提交回复
热议问题