Skip to main content
Open topic with navigation

X509Signer_UpdateAndSignCertificate

CAPL Functions » Security » X509Signer_UpdateAndSignCertificate Valid for: CANoe DE • CANoe4SW DE

Method Syntax

Description

Creation and Update function for generation of a valid signature and update of all relevant fields to make the Certificate a valid certificate in terms of cryptographical signature and content fields (Issuer, AuthorityKeyIdentifier, SignatureAlgorithm). For signature creation, the signers private key and the algorithm from signers certificate subject key algorithm is used. The To Be Signed Certificate will be signed independent from the validity of the certificate content and certificate structure (i.e. invalid certificate structures can receive a valid signature for testing). Signer will use the hash function provided at the signer creation or the one associated with the signing algorithm of this signer. Note: This function will not update the serial number and the validity dates.

Parameters

  • objectHandle: (in) Handle with type ‘X509Signer’. The function will be called in context of this handle.

Selectors

Return Values

  • 1: NoError: Operation was completed successfully.
  • -2: Nullpointer: Error, the return value of the function was “NULL”. The value is not available and the output buffer is unchanged.
  • -3: BufferTooSmall: Error, the output buffer is too small. No value has been written.
  • -4: InvalidHandle: Error, the provided objectHandle is invalid or not suitable for this function.
  • -5: InvalidArgument: Error, one or more arguments are invalid for this function.
  • -6: InvalidArgumentHandle: Error, one or more argument handles are invalid or not suitable for this function.

Example