Generate RSA Public Key for Bluetooth Pairing

Last Updated on : 2023-06-20 15:21:36download

Generate the RSA public key for Bluetooth pairing.

API address

POST: /v1.0/iot-03/device-registration/assets/{asset_id}/encryptions/rsa/public-key

Request parameter

Parameter nameTypeINRequiredDescription
asset_idStringuritrueThe asset ID.

Return parameter

Parameter nameTypeDescription
resultRsaPublishKeyRes

Description of result

Parameter nameTypeDescription
encryption_tokenStringThe secret key.
public_keyStringThe public key.
expires_inIntegerThe time when the token expires.

Request example

POST: /v1.0/iot-03/device-registration/assets/{asset_id}/encryptions/rsa/public-key

Return example

{
    "result": {
        "public_key": "******",
        "encryption_token": "******",
        "expires_in": 300
    },
    "t": 1591257455025,
    "success": true
}

Error code

For more information, see error code.