Answered Using certutil

  • Monday, February 11, 2013 3:53 PM
     
     

    Hello all,

    I am writing a silent installation script that uses the certutil.exe for one part to install a certificate in the store of the current user . The call is as below:

    certutil –f -user –p %PFXPASSWORD% –importpfx Mycertificate.pfx

    When I make this call to certutil the security warning window pops up saying: "You are about to install a certificate from this authority... Windows can not validate the certificate is actually from here, blah blah blah. Are you sure u want to install? 

    After clicking Yes the certificate imports successfully. Is there a way that I can just force the import without this message coming up? Having to click Yes defeats the purpose of it being in silent installation script

All Replies

  • Monday, February 11, 2013 5:49 PM
     
     Answered

    Hi,

    try to run it with the NoRoot option:

    e.g. certutil.exe -f - user - p password -importpfx cert.pfx NoRoot

    Regards,

    Lutz

    • Marked As Answer by althurm Wednesday, February 13, 2013 6:27 PM
    •  
  • Wednesday, February 13, 2013 6:27 PM
     
     

    Hi,

    try to run it with the NoRoot option:

    e.g. certutil.exe -f - user - p password -importpfx cert.pfx NoRoot

    Regards,

    Lutz

    Looks like that'll work! Thanks