Sign or Unsign Library Scripts

Scripts included in a scripts library block can be digitally signed to certify that they are authored by an authorized developer, and to protect them against subsequent modification or tampering. For background information, see Signing Library Scripts.

Install the Private Key Certificate

To be able to sign a library script you must first install the private key certificate on your local machine.

  • You received a certificate pair from a trusted certificate authority (private key file (.pfx) with a password and public key file (.cer)).
  1. Double-click the .pfx file.
  • A wizard helps you to install the certificate.
  1. In the Certificate Import Wizard page, select Local Machine.
  1. Click Next.
  1. Enter the password.
  1. Click Next.
  1. In the Certificate Store page, select Place all certificates in the following store.
  1. Click Browse and select Trusted Root Certificate store.
  1. Click OK.
  1. Click Next.
  1. Click Finish.

Sign a Library Script

  • You installed the private key certificate on your local machine.
  1. Select the scripts block. For example:
    Project > System Settings > Libraries > L4-Project > […] > [scripting library] > [scripts block]
    .
  1. In the Script Editor tab, open the Scripts expander.
  1. Select the script you want to sign. It must have Signed set to False.
  1. Click Sign.
  1. In the Select Certificate dialog box, check that Store Location is User certificates.
  1. Select the Personal tab.
  1. Select the certificate previously imported and provide the certificate password, if required.
  • When the operation is completed, the Signed column displays True, while the name of the author displays in the Signed By column.

Unsign a Library Script

You can remove the signature from a previously signed library script. For example, you might want to do this if you want to modify the script.

  1. Select the scripts block. For example:
    Project > System Settings > Libraries > L4-Project > […] > [scripting library] > [scripts block]
    .
  1. In the Script Editor tab, open the Scripts expander.
  1. Select the script you want to unsign. It must have Signed set to True.
  1. Click Unsign.
  1. Click Yes.