w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
Import Certificate to Trusted Root but not to Personal [Command Line]

Look at the documentation of certutil.exe and -addstore option.

I tried

certutil -addstore "Root" "c:cacert.cer"

and it worked well (meaning The certificate landed in Trusted Root of LocalMachine store).


If there are multiple certificates in a pfx file (key + corresponding certificate and a CA certificate) then this command worked well for me:

certutil -importpfx c:somepfx.pfx

© Copyright 2018 w3hello.com Publishing Limited. All rights reserved.