Overview
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
When you customize the SDK, on the Device Authentication Solution page, select X.509 Certificate from the Device Authentication Solution list.
- Set up the development environment.
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
Connecting with an X.509 certificate: Usage example.
Connecting with an X.509 certificate: Common error codes.