Configure file signature and verification

Add the File sign and verify NetLogic to electronically sign files and verify the signed files integrity.
  1. In the main toolbar, select
    Template Libraries
    Template Libraries
    .
  2. In
    Libraries
    , search for
    File sign and verify
    .
  3. Under
    Components
    , drag
    File sign and verify
    to
    NetLogic
    in
    Project view
    .
  4. Select
    Close
    .
  5. In
    Project view
    , select
    FileSignVerify
    .
  6. In
    Properties
    , in
    PublicKey
    , enter the path to the public key.
    For example, enter
    %PROJECTDIR%\FilesHash\optixhmi_cert.pem
    TIP: You will generate the public key later.
  7. In
    PrivateKey
    , enter the path to the private key.
    For example, enter
    %PROJECTDIR%\FilesHash\optixhmi_cert.pem
    TIP: 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
Have questions or feedback about this documentation? Please submit your feedback here.