damienbod / AspNetCoreCertificates

Certificate Manager in .NET Core for creating and using X509 certificates
https://www.nuget.org/packages/CertificateManager/
MIT License
238 stars 55 forks source link

Intermittent certificate failure when authenticating to Azure IoT Hub DPS #57

Open patilsnr opened 10 months ago

patilsnr commented 10 months ago

When using the following process to create root, intermediate, and leaf certs, I receive occasional unauthorized errors when communicating with Azure IoT Hub Device Provisioning Service (DPS). https://damienbod.com/2019/06/27/using-chained-certificates-for-certificate-authentication-in-asp-net-core-3-0/

However, this error only occurs part of the time, and the same workflow will produce successful authentications. Examining the certificates, they are stored in .pfx format with the leaf, intermediate, and root stored inside. Communication is over HTTP.

Is this repository still being maintained? I notice the last commit was several years ago. Thank you!

damienbod commented 10 months ago

Hi @patilsnr

Yes

I will look at this

I update most stuff on this repo:

https://github.com/damienbod/AzureIoTHubDps

Will validate this repo as well and update if not actual.

Certificates and private keys are tricky

patilsnr commented 10 months ago

Thanks! Any update on this?

damienbod commented 10 months ago

@patilsnr Still on my TODO, work is eating up my time.