This function retrieves all the certificate Ids associated with a devices matching the specified issuer.

API

int Iotc_GetCertificateIdsByIssuer(IotcSession *iotcSession, const IotcDeviceId *deviceId, const char *issuer )

Description

Get certificate ids associated with a device whose issuer entry matches the specified issuer.

Parameters
iotcSession

The current IotcSession to be used.

deviceId

Pointer to the device identifier of the device.

issuer

NULL terminated UTF-8 string. This string is matched against all the entries in a certificate issuer(for example, Common Name, Organization Name). If one of the entries completely matches this string, the certificate Id is included in the response.

Returns

0 on success and -1 on failure.