Jump to content

Is there a console tool for importing security certificates?


Recommended Posts


Posted

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.

:)

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Recently Browsing   0 members

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