create_keys_and_certificate

Function create_keys_and_certificate 

pub async fn create_keys_and_certificate(
    client: MqttClient,
) -> Result<DeviceCertificateInfo, Error>
Expand description

Creates a new device certificate and keys using the MQTT client.

If the request is accepted, the function returns a DeviceCertificateInfo struct containing the new certificate information. If the request is rejected, the function returns a ProvisionError.

§Arguments

  • client - The MQTT client to use for the request.

§Returns

A Result containing the DeviceCertificateInfo if the request is accepted, or a ProvisionError if the request is rejected.