IMR_SetClientCertificate

This function sets information that is necessary for establish TLS mutual authentication, and it should be called before establishing a TLS - Mutual Authentication session.

Function Header

IMRResult IMR_SetClientCertificate(

const char *common_name

);

Function Parameters

Field

Input/Output

Value or Description

common_name

Input

A NULL terminated string specifying the Subject:CN string of the desired client certificate. The client certificate with the required OIDs should be installed in the “MY” store. If there more than one client certificate with the same Subject:CN the library chooses the first appropriate certificate its subject matches the common_name string.

If this parameter is empty string, the library chooses the first certificate with the appropriate OIDs. (See Secure Session Support).

Function Return Status

For a complete list of possible error codes, see Error Codes.

Status

Value or Description

IMR_RES_OK

The command finished successfully.

 

Copyright © 2006-2022, Intel Corporation. All rights reserved.