Azure / Azure/azure-cli

Issues while Verifying the Certificate - Azure CLI and PowerShell

Open
#5,376 5 comments 0 reactions 1 assignee Claimed by @digimaun View on GitHub
customer-reported IoT question Service Attention
Dominant language
Python
Stars
4.6k
Forks
3.5k
Avg merge
3d 2h
Merged PRs (30d)
60

Description

Hi,

O.S Details : Windows 10
azure-cli : (2.0.25)
Extensions: azure-cli-iot-ext (0.4.0)
PowerShell Version : 5.1

I am facing an issue when I try to verify my certificate with the generated code from Azure Portal.
Below is the logged error :

> raise models.ErrorDetailsException(self._deserialize, response)
> azure.mgmt.iothub.models.error_details.ErrorDetailsException: Proof-Of-Possession failed. Issuer certificate 'CN=Azure IoT New Root CA Gauri New1' cannot be found in the certificate chain. If you contact a support representative please include this correlation identifier: db9cd4a3-9e94-4c4b-8ee0-5f6965d39349, timestamp: 2018-01-23 11:19:29Z, errorcode: IH400053.

Following is what I did :
Ref article : [MSDN](https://docs.microsoft.com/en-us/azure/iot-hub/iot-hub-security-x509-create-certificates)
Created a Root Certificate via PowerShell Scripts in the above article.
Created Intermediate Certificates i.e. Chain Of Trust via PowerShell
Uploaded Root Certificate to IoT Hub via via PowerShell and also tried with Azure CLI
Generated Verification Code via PowerShell and also via Azure CLI
Created the Verification Certificate "VerifyCert4.cer" using the Generated Verification Code via PowerShell

Result : The above mentioned error when I run via CLI.
![image](https://user-images.githubusercontent.com/8458489/35277887-3a38d3a2-006e-11e8-9114-b3f26d4e07b2.png)

---

### Environment summary

Install Method (e.g. pip, interactive script, apt-get, Docker, MSI, edge build) / CLI version (`az --version`) / OS version / Shell Type (e.g. bash, cmd.exe, Bash on Windows)

```
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.