Discuss this help topic in SecureBlackbox Forum

TElAuthenticodeSigner class

Methods     Events     Declared in     Licensing     


This class is used to sign EXE and DLL files with certificates.

Description

    This class is designed for EXE-files signing.
    To sign the file you should perform the following sequence of operations:

  1. Create TElAuthenticodeSigner class instance.
  2. Call OpenFile method and check result. If this method returned value other than SB_AUTHENTICODE_ERROR_SUCCESS process the error and go to the step of file closing.
  3. Call AddAuthenticode method. If it returned False go to the step of file closing.
  4. Call AddSignature and AddCertificate methods as many times as is necessary in arbitrary sequence checking each time returned value for error.
  5. If you want to save the signature(s) to the file call CloseFile(True) method. If you don't want to save changes to the file call CloseFile(False) or Clear method.
  6. Repeat previous 4 steps for all files which must be signed.
  7. Destroy TElAuthenticodeSigner class instance.

Methods

Events

Declared in

.NET:
  • Namespace: SBAuthenticode
  • Assembly: SecureBlackbox.PKI
VCL:
  • Unit: SBAuthenticode
Java:
  • Package: SecureBlackbox.PKI.jar
C++:
  • sbauthenticode.h

Licensing

To use this class in the development and distribution of your software projects, you need to purchase one of the following licenses:

PKIBlackbox, SecureBlackbox Data Security, SecureBlackbox Transports, SecureBlackbox Standard, SecureBlackbox Professional

Discuss this help topic in SecureBlackbox Forum