Jump to content

Is there a console tool for importing security certificates?


dencorso

Recommended Posts


Here is an example (updroots.exe file of unpacked MS rootsupd.exe)

@echo off

:LOOP1

SET CERTNAME=NA
(FOR /F "tokens=*" %%g in (' Dir /A:-D /B /O:N ^|^ find /I ".cer"') DO Set "CERTNAME=%%g") >NUL 2>&1

IF "%CERTNAME%" == "NA" GOTO END

updroots.exe "%CERTNAME%"
DEL /F "%CERTNAME%"

GOTO LOOP1

:END

A copy of the certificates should be used as these are deleted after installation. The whole thing should be tested in a VM.

:)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...