Issues while Verifying the Certificate - Azure CLI and PowerShell
- 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.

---
### 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
Assessment
This issue has not been assessed yet.