Open RonMatsu opened 2 years ago
Hi @RonMatsu,
The iotedgehubdev tool only supports shared access key authentication to the device in IoT Hub.
Looks like you have created a Edge device entity with X.509 cert. Can you try to create Edge device with Shared Access Key and see if it works?
Your device connection string is - HostName=XXXXXXX.azure-devices.net;DeviceId=XXXXXXX;x509=true
I'm getting this error no matter what I try with the command 'iotedgehubdev setup -c ""'.
I'm using double quotes. Even the auto generated command issued by clicking "Setup IoT Edge Simulator" in VS code still generates the error.
command as below but I changed access keys and device names to 'X' chars for privacy: $ sudo iotedgehubdev setup -c "HostName=XXXXXXX.azure-devices.net;DeviceId=XXXXXXX;x509=true"
auto generated: $ sudo "iotedgehubdev" setup -c "HostName=XXXXXXX.azure-devices.net;DeviceId=XXXXXXX;x509=true" -i "HostName=XXXXXXX.azure-devices.net;SharedAccessKeyName=iothubowner;SharedAccessKey=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX="
Thanks.