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)).
- Double-click the .pfx file.
- A wizard helps you to install the certificate.
- In the Certificate Import Wizard page, select Local Machine.
- Click Next.
- Enter the password.
- Click Next.
- In the Certificate Store page, select Place all certificates in the following store.
- Click Browse and select Trusted Root Certificate store.
- Click OK.
- Click Next.
- Click Finish.
Sign a Library Script
- You installed the private key certificate on your local machine.
- Select the scripts block. For example:
Project > System Settings > Libraries > L4-Project > […] > [scripting library] > [scripts block].
- In the Script Editor tab, open the Scripts expander.
- Select the script you want to sign. It must have Signed set to False.
- Click Sign.
- In the Select Certificate dialog box, check that Store Location is User certificates.
- Select the Personal tab.
- 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.
- Select the scripts block. For example:
Project > System Settings > Libraries > L4-Project > […] > [scripting library] > [scripts block].
- In the Script Editor tab, open the Scripts expander.
- Select the script you want to unsign. It must have Signed set to True.
- Click Unsign.
- Click Yes.