CmdID / az / az iot / az iot hub / az iot hub certificate
az iot hub certificate verify
Verifies an Azure IoT Hub certificate. Azure CLI reference
Verifies a certificate by uploading a verification certificate containing the verification code obtained by calling generate-verification-code. This is the last step in the proof of possession process. For a detailed explanation of CA certificates in Azure IoT Hub, see https://learn.microsoft.com/azure/iot-hub/iot-hub-x509ca-overview
2 examples Its page in the Azure CLI reference
Examples
Verifies ownership of the MyCertificate private key.
az iot hub certificate verify --hub-name MyIotHub --name MyCertificate --path /certificates/Verification.pem --etag AAAAAAAAAAA=Identify--nameA friendly name for the certificate.--pathThe path to the file containing the certificate.--etagEntity Tag (etag) of the object.Verifies an Azure IoT Hub certificate (autogenerated)
az iot hub certificate verify --etag AAAAAAAAAAA= --hub-name MyIotHub --name MyCertificate --path /certificates/Verification.pem --resource-group MyResourceGroup --subscription MySubscriptionIdentify--etagEntity Tag (etag) of the object.--nameA friendly name for the certificate.--pathThe path to the file containing the certificate.--resource-groupName of resource group.--subscriptionName or ID of subscription.