Querying the Device Certificate Information

This interface is used to query certificate information on a device, including the import status of the FusionDirector root certificate and CRL.

Message instance

{
    "header": {
        "msg_id": "741aec66-99b2-4d97-aaf2-63d27f53bbc5",
        "parent_msg_id": "",
        "timestamp": 1550107087319,
        "sync": true
    },
    "route": {
        "source": "EdgeManager",
        "group": "hardware",
        "operation": "query",
        "resource": "websocket/cert_query"
    },
    "content": ""
}

Parameter Description

The content is left empty. No option needs to be added. It is used to query certificate information.

Result returned

{
    "header": {
        "msg_id": "741aec66-99b2-4d97-aaf2-63d27f53bbc5",
        "parent_msg_id": "",
        "timestamp": 1550107087319,
        "sync": false
    },
    "route": {
        "source": "hardware",
        "group": "hub",
        "operation": "update",
        "resource": "websocket/cert_info"
    },
    "content": {
          "root_certificate":{
              "cert_is_full": true/false, // Indicates whether the number of certificates reaches the upper limit. false indicates that the number of certificates does not reach the upper limit, and true indicates that the number of certificates reaches the upper limit.
              "cert_lists":[{
                  "cert_type":"FDRootCert",
                  "cert_name":"",
                  "issuer":"CN=xxx.ca.com, OU=IT, O=xxx, L=ShenZhen, S=GuangDong, C=CN",
                  "subject":"CN=xxx.ca.com, OU=IT, O=xxx, L=ShenZhen, S=GuangDong, C=CN",
                  "valid_not_before":"Jan 07 2017 GMT",
                  "valid_not_after":"Jan 05 2027 GMT",
                  "serial_number":"ff ff ff ff ff ff ff ff",
                  "is_import_crl":false,
                  "signature_algorithm":"sha256WithRSAEncryption",
                  "fingerprint":"ffffffffffffffffffffffffff",
                  "key_usage":"Signing, CRL Sign",
                  "public_key_length_bits":"2048"
              }]
          }
    }
}