Configure file signature and verification
Add the File sign and verify NetLogic to sign files electronically and verify the signed files integrity.
-
In the main toolbar, select
Template Libraries.
- In Libraries, search for File sign and verify.
- Under Components, drag File sign and verify to NetLogic in Project view.
- Select Close.
- In Project view, select FileSignVerify.
-
In Properties, in PublicKey, enter the path to the public key.
For example, enter %PROJECTDIR%\FilesHash\optixhmi_cert.pemTip: You will generate the public key later.
-
In PrivateKey, enter the path to the private key.
For example, enter %PROJECTDIR%\FilesHash\optixhmi_cert.pemTip: You will generate the private key later.
The FileSignVerify NetLogic exposes these event methods:
GeneratePublicAndPrivateKey
. Generate the public and private key pair for signing files.SignFile
. Sign the file passed as the parameter.VerifyFileSignature
. Verify the integrity of a file and signature passed as parameters.
Design the application interface and associate events with the exposed methods.