Azure / azure-iot-sdk-csharp

A C# SDK for connecting devices to Microsoft Azure IoT services
Other
457 stars 493 forks source link

How to use tpm private key for TLS with IoT Hub SDK (Not TPM Attestation) - for DeviceAuthenticationWithX509Certificate #3421

Open rogrok opened 6 months ago

rogrok commented 6 months ago

The documentation here https://learn.microsoft.com/en-us/dotnet/api/microsoft.azure.devices.client.deviceauthenticationwithx509certificate?view=azure-dotnet states that the Certificate private key should be in the store or in the object.

Certificate | Gets or sets the X.509 certificate associated with this device. The private key should be available in the X509Certificate2 object, or should be available in the certificate store of the system where the client will be authenticated from.

timtay-microsoft commented 6 months ago

Currently, we don't support this scenario. The only TPM-based authentication we support right now is symmetric key-based

rogrok commented 6 months ago

Thanks Tim, is there a plan to add this for future ?

timtay-microsoft commented 6 months ago

We don't have any immediate plans to add it, but it is possible we have time in the future to make this happen.