Queries the details of a certificate authority (CA) certificate, such as the content and status of the certificate. ApsaraMQ for MQTT allows you to use X.509 certificates for authentication. When you connect an ApsaraMQ for MQTT client to an ApsaraMQ for MQTT broker, you can use the device certificate to implement authentication. CA certificates are used to issue device certificates to clients and validate the device certificates.
Operation description
- Only ApsaraMQ for MQTT Enterprise Platinum Edition instances support this operation.
- You can call this operation up to 500 times per second per Alibaba Cloud account. If you want to increase the limit, join the DingTalk group (ID: 35228338) to contact ApsaraMQ for MQTT technical support.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
MqttInstanceId | string | Yes | The instance ID bound to the CA certificate, which is the instance ID of the MQTT version of the cloud message queue. | post-cn-7mz2d****** |
Sn | string | Yes | The SN serial number of the CA certificate to be queried, used to uniquely identify a CA certificate. | 007269004887****** |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "020F6A43-19E6-4B6E-B846-44EB31DF****",
"Data": {
"RegistrationCode": "13274673-8f90-4630-bea1-9cccb25756ad2089******",
"CaName": "mqtt_ca",
"Sn": "00f26900ba87******",
"CaContent": "-----BEGIN CERTIFICATE-----\\nMIIDuzCCAqdGVzdC5jbi1xaW5n******\\n-----END CERTIFICATE-----",
"VerificationContent": "-----BEGIN CERTIFICATE-----\\nMIID/DCCAu+Y5sRMpp9tnd+4s******\\n-----END CERTIFICATE-----",
"ValidBegin": "1654137303000",
"ValidEnd": "1969497303000",
"Status": "1"
}
}
Error codes
HTTP status code | Error code | Error message |
---|---|---|
400 | ParameterFieldCheckFailed | Failed to validate the parameters. The parameters may be missing or invalid. |
500 | FindCaBySnError | Failed to find the CA by the SN. Please check sn is valid. |
500 | MqttOwnerCheckError | Failed to validate the instance permission |
500 | MqttInstanceNotFound | Specified instance is not found |
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|---|---|
2025-02-18 | The Error code has changed | View Change Details |
2022-08-24 | The Error code has changed | View Change Details |