-
Notifications
You must be signed in to change notification settings - Fork 463
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
EdgeX509AuthDownstreamDevice sample gives error "Authentication failed because the platform does not support ephemeral keys" #7388
Comments
@scout208 would you mind trying to run |
@nyanzebra I created the test certificates using the instructions on this page here: https://learn.microsoft.com/en-us/azure/iot-edge/how-to-create-test-certificates?view=iotedge-1.5&tabs=windows#create-downstream-device-certificates When I run I did notice that if I don't run it with the full-chain certificate it gives an error, so I changed my Output of My new
Same output from |
I see in the comments of this sample iotedge/samples/dotnet/EdgeX509AuthDownstreamDevice/Program.cs Lines 225 to 226 in aaba3b9
Any chance you could try this for Linux? |
@scout208 any updates? |
@jlian Sorry I haven't had time to test it on Linux yet. Ultimately if it only works on Linux that won't work for me as I need my client to be running Windows. |
@scout208 any updates |
@jlian I did decide to try it on Linux to see if it worked. I'm now getting this error: And the same error actually happens on Windows after trying to convert the .pem to a .pfx like you suggested. It seems there's some problem with how I'm using the certificate but I can't figure it out. |
Ok so we're at least past the ephemeral key issue that seems to be solved with the Are you following a tutorial on this? Did you register the device identities? https://learn.microsoft.com/en-us/azure/iot-edge/how-to-authenticate-downstream-device?view=iotedge-1.5 |
@jlian Yes, I followed the tutorials starting here https://learn.microsoft.com/en-us/azure/iot-edge/how-to-create-transparent-gateway?view=iotedge-1.5&tabs=eflow. I think the issue is my devices are in Azure IoT Central. I tried following the tutorial with a device created in IoT Hub and it worked. Do you know if anyone has tried following this sample using IoT Central? |
@jlian & @scout208 I just tried with our test certs https://learn.microsoft.com/en-us/azure/iot-edge/how-to-create-test-certificates?view=iotedge-1.5&tabs=linux#create-edge-ca-certificates which for provisioning work fine, but for this where certs are checked (more than just thumbprint verification) they don't work. Will try with some manual certs in a bit and see if can get this working. |
I'm trying to run the EdgeX509AuthDownstreamDevice but when I do I get this error output:
This is the contents of my
launchSettings.json
file:How do I resolve this error?
The text was updated successfully, but these errors were encountered: