I want to install self-signed certificate for IE, Firefox and Chrome in Windows (XP and 7).
I need to install certificate for several systems, So I planed to create .bat file that install certificate for browsers. I got following command while googled
certutil -addstore -f -enterprise -user root root_ca.cer
But it only for IE. Is there any option for Chrome and Firefox.
Navigate to Certificates (Local Computer); choose the Trusted Root Certification Authorities store to import the certificate; right click the store and choose All Tasks > Import ; Follow the wizard and provide the certificate file you have.
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!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With