X.509 certificate Tutorial #3172
-
I'm just testing out this tutorial "https://learn.microsoft.com/en-us/azure/iot-hub/tutorial-x509-test-certificate" and would like to update to the latest version ''Microsoft.Azure.Devices.Client 2.0.0-preview004" as a dependency. I could not find the class equivalent to "DeviceAuthenticationWithX509Certificate". Could you kindly recommend the code modifications needed to compile and build with the V2 library? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hi @RaysApps - Thank you for trying out the v2 preview! The renamed type you are looking for is We have a similar sample written for v2 here. I see this mapping is missing from our migration guide, so I'll ensure it gets added. Regards, |
Beta Was this translation helpful? Give feedback.
-
Hi @drwill-ms, |
Beta Was this translation helpful? Give feedback.
Hi @RaysApps -
Thank you for trying out the v2 preview!
The renamed type you are looking for is
ClientAuthenticationWithX509Certificate
. We squashed the one for a device and the one for a module into a single class.We have a similar sample written for v2 here.
I see this mapping is missing from our migration guide, so I'll ensure it gets added.
Regards,
David