Einzelnen Beitrag anzeigen

herbstrot

Registriert seit: 20. Sep 2013
Ort: Ostholstein
26 Beiträge
 
Delphi 10.4 Sydney
 
#21

AW: Swissbit DLL - Diverse Fragen

  Alt 30. Jan 2020, 10:43
Moin,

in der HTML-Doku unter Modules/Exporting Stored Data
Da steht:
Zitat:
WORMAPI WormError WORMAPI_CALL worm_getLogMessageCertificate ( WormContext * context,
unsigned char * certificate,
uint32_t * certificateLength
)

Returns the certificate that can be used to verify the signatures of all Log Messages created by the TSE.

The returned data is a single PEM file, which contains multiple certificates, since the TSE's certificate is signed by other certificates. To verify the signature, only the leaf certificate (the first one in the PEM file) is required. To make sure the leaf certificate is genuine, the next certificate in the file can be used to verify the previous certificate until the last certificate is about to be checked, which will be the root certificate that must be trusted by the system.

Since the whole chain might be quite large, it is advised to supply a big certificate buffer (i.e. several kilobytes). If the buffer is too small, the method will fail.

Note
This command requires an active CTSS interface.

Parameters
[in] context Library context
[out] certificate Output buffer. Must be allocated by the caller. If this is NULL, only the required length for the buffer will be stored in certificateLength.
[in,out] certificateLength Length of the certificate buffer. After a successful execution, this will contain the number of bytes that were written to the output buffer.
Thoren
Alles wird Gut
  Mit Zitat antworten Zitat