Unable to use Certutil to import pfx file - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

catsini
Posts: 3
Joined: Sun Dec 20, 2009 11:11 am

Unable to use Certutil to import pfx file

I use windows 8 64bit and have to use Certutil to import a pfx file.
Certutil.exe in windows 8 x64 is located at C:/windows/system32. And with Command Prompt (use Admin right) with command below is success:
certutil.exe -p mypassword -importpfx "c:\test\cert.pfx"

So in AI, i tried to create custom action but no success(certificate isn't imported):

1. LauchfileasAdmin
Command:
/RunAsAdmin Certutil.exe -p mypassword -importpfx "[#cert.pfx]"

2. Lauchfile or open URL using 64 bit laucher:
Command:
/RunAsAdmin Certutil.exe -p mypassword -importpfx "[#cert.pfx]"

3.Lauch exe with working directory ( i copy certutil.exe file to c:\test\ and add to AI )
Working dir: APPDIR\test
"[#certutil.exe]" -p mypassword -importpfx "[#cert.pfx]"
--> error happened during install

Any helps or advices?
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Unable to use Certutil to import pfx file

Hi,

You can try to run the "Launch file or open URL using 64 bit launcher" custom action as deferred with no impersonation (check the "When the system is being modified" radio button and the "Run under the LocalSystem account with full privileges" checkbox). Also, you don't need to write "/RunAsAdmin" in the "Command" text field.

Let us know if this helped, otherwise give us more details about your scenario.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”