Jump to content

Recommended Posts

Posted

I would like to have my "Trusted Publishers' Certificates" in IE unattended.

I know about the export function, but then is there a way to import these files in an unattended fashion? (CER extension)

I am talking about trusted certificates that are found in:

Internet Explorer, Tools, Internet Options, "Content" tab, Trusted Publishers

Thanks for any help!

B)


  • 2 weeks later...
  • 1 year later...
Posted

Nearly two years have passed since I asked this question, maybe someone out there now knows how to include the "Trusted Publishers' Certificates" in an Unattended install...?

It would be helpful, as not everyone knows which companies or publishers are safe to allow on the computer, and are needed for their purposes...

Thanks for any enlightment on this subject...!

:}

  • 2 weeks later...
Posted

You will need a program called certmgr.exe to do this. This file can be found in this post. It can also be found in the Windows XP Platform SDK which is available for download from Microsoft's website. But, to install a root certificate from the command line, use the following:

certmgr -add cacert.cer -s ROOT -all

Becasue you are installing a trusted root certification authority, a window will popup asking you if you are sure about doing this. Below is a AutoIT3 script that will take care of the window. You can get AutoIT3 from http://www.autoitscript.com/autoit3/

; AutoIT Parameters
#NoTrayIcon
AutoITSetOption("MustDeclareVars", 1)
AutoItSetOption("RunErrorsFatal", 0)

; Operational Constants
const $WinTitle = "Security Warning"
const $WinText = "You are about to install a certificate"
const $WinCtrl = 6
const $FileName = "cacert.cer"

; Variables
dim $r
dim $e

; Program Function
$e = 0
Run("CertMgr.exe -add " & $FileName & " -s ROOT -all")
if @error = 0 then
$r = WinWait($WinTitle, $WinText, 30)
if $r = 1 then
WinActivate($WinTitle, $WinText)
ControlClick($WinTitle, $WinText, $WinCtrl, "left", 1)
else
$e = 1
endif
else
$e = 1
endif
exit($e)

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...