Jump to content
MSFN is made available via donations, subscriptions and advertising revenue. The use of ad-blocking software hurts the site. Please disable ad-blocking software or set an exception for MSFN. ×

Trusted Publishers Certificates

Recommended Posts

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!


Link to post
Share on other sites

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

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


Link to post
Share on other sites
  • 2 weeks later...

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
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)
$e = 1
$e = 1

Link to post
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...