How to Sign a LabVIEW Executable With a PFX File

Updated Mar 18, 2022

I am building a LabVIEW executable and I have a Personal Information Exchange file (.PFX). I want to build my executable with LabVIEW and LabVIEW Application Builder and sign this to verify that it is created by me.

The standard procedure to sign a LabVIEW executable using a PFX file is described by the following steps:
 

  • Setup
  1. Install the certificates in your computer by double-clicking the .PFX file and walking through the wizard.
  2. You will require the password for the certificate to complete the wizard.
  3. Near the end of the wizard you will get to the page "Certificate Store", when you are there, click on "Browse" and select the option called "Personal".

 

  • Signing
  1. In the LabVIEW project, open the build specification for the executable.
  2. On the Windows Security page make sure you can see the certificates you installed.
  3. Select one of the certificates in the drop down menu.
  4. Enter the associated timestamp URL. For example the following is one of Verisigns URLs "http://timestamp.verisign.com/scripts/timestamp.dll".
  5. Enter the timestamp URL description. (Optional )
  6. Build the EXE.

   

  • Validation
  1. Browse to the EXE you just built.
  2. Right-click the EXE file and choose Properties.
  3. Select the Digital Signatures tab in the property dialog and verify the certificate is present.
  4. Also verify the timestamp on the certificate reflects when the EXE was built.