Function create_certificate_from_csr
pub async fn create_certificate_from_csr(
client: MqttClient,
csr: String,
) -> Result<DeviceCertificateInfo, Error>Expand description
Creates a new device certificate and keys using the provided CSR (Certificate Signing Request).
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.csr- The CSR (Certificate Signing Request) to use for creating the new certificate.
§Returns
A Result containing the DeviceCertificateInfo if the request is
accepted, or a ProvisionError if the request is rejected.