Overview

Updated at:

An X.509 certificate is a digital certificate used to authenticate communication entities. To connect devices that use the Message Queuing Telemetry Transport (MQTT) protocol to Alibaba Cloud IoT Platform, you must configure the C Link software development kit (SDK) with an X.509 certificate.

Prerequisites

How it works

Connecting a device using an X.509 certificate is similar to a standard MQTT connection. The only difference is that you must also configure the certificate information in the C Link SDK.

./demos/mqtt_x509_auth_demo.c

代码开发流程说明

For more information about the APIs for the MQTT connection feature, see aiot_mqtt_api.h.

Usage notes

  • X.509 certificates are only applicable to devices that are directly connected to IoT Platform based on the MQTT protocol.

  • X.509 certificates are supported only in the China (Shanghai) region.

  • X.509 certificates are not applicable to products that use LoRaWAN as the network connection mode.

  • After you specify an authentication mode for a device, you cannot modify the mode.

Examples