Configure file signature and verification
Add the File sign and verify NetLogic to electronically sign files and verify the signed files integrity.
- In the main toolbar, selectTemplate Libraries
- InLibraries, search forFile sign and verify.
- UnderComponents, dragFile sign and verifytoNetLogicinProject view.
- SelectClose.
- InProject view, selectFileSignVerify.
- InProperties, inPublicKey, enter the path to the public key.For example, enter%PROJECTDIR%\FilesHash\optixhmi_cert.pemTIP: You will generate the public key later.
- InPrivateKey, 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.
TIP:
Download a sample project:
FileSignAndVerify.zip.Provide Feedback