Error 16 at Code Sign API When Digitally Signing LabVIEW-Built Executable

Updated Feb 14, 2018

Reported In

Software

  • LabVIEW 2014 SP1 Application Builder Module

Issue Details

I am trying to digitally sign my executable from the Windows Security category in Application Builder. However, when I do this, I get the following error:

Error 16 occurred at CodeSignAPI.lvlib:Get Signing Error String .vi

I have registered my certificate and can select it from the Certificate drop down menu. I have also provided a valid Timestamp URL. How do I resolve this error?

Solution

This error occurs when you have registered a certificate from a file format other than the PFX file format. Please contact the company that you purchased the certificate from and they should have a tool that allows you to convert your current certificate to one in the PFX file format, or provide you with a new PFX digital certificate. 

Once you have a PFX certificate, complete the following to digitally sign your EXE:
  1. Double-click the PFX file to open the Certificate Import Wizard.
  2. Follow the dialog and check options based on your requirements.
  3. When you have the option to choose a Certificate Store, place it in the Personal folder. (See image below)
  4. After the certificate has been successfully imported, open the build specification for your EXE.
  5. Choose your certificate from the Certificate dropdown menu and enter the Timestamp URL.
  6. Finish configuring your build specification.
  7. Click build.

Your EXE should now be successfully signed.

WAS THIS ARTICLE HELPFUL?

Not Helpful