Script for Install SSL Certificate on Trusted Root Certificate Store Script for Install SSL Certificate on Trusted Root Certificate Store windows windows

Script for Install SSL Certificate on Trusted Root Certificate Store


Bit of an old post but thought I would throw in my two cents anyway. You are right, that command in a batch script will install the certificate root_ca.cer into the trusted CA store. I would modify the line to be:

certutil -addstore -f -enterprise -user root "%~dp0root_ca.cer"

This way the shell will expand %~dp0 to the path of the executing script so you can run it across a network from a UNC path and it will still work.

In answer to your other question, Chrome will (as of writing this post) read from the windows certificate store so there is no need to do anything special; just restart chrome after running the script and it should be sweet.

As for Mozilla check out this post for a script to do that. Simples!