Azure / dps-keygen

Helper tool to deal with the device keys :closed_lock_with_key:
MIT License
24 stars 16 forks source link

ERROR: You haven't defined neither the master key or device key. #10

Closed mmartain closed 4 years ago

mmartain commented 5 years ago

I am using following command:

dps-keygen -dk:qPcVbH9baxcUmd4PCEYZbIOkT<redacted>/Pq5rq2KSpIHsVDJ3BSEVzhKyaRjABAh5B0iEzsUVmA== -di:2pq<redacted>02 -si:0ne0<redacted>75 Output from the console:

Azure IoT DPS Symetric Key Generator v0.3.3
ERROR: You haven't defined neither the master key or device key.

I have tried both keys from the device and i have tried with the master key and only the device id.

All devices are registered and have a device template. What am i doing wrong?

lucadruda commented 4 years ago

could you give more context? OS and terminal. Thinking about some OS-dependent string parsing. that error only happens if 'dk' or 'mk' are not passed at all.

mmartain commented 4 years ago

I have figured it out: on windows 10 I need to include the .cmd part of the command, so dps-keygen.cmd with the parameters works as intended. Something to mention in the readme maybe?

obastemur commented 4 years ago

Good catch. Please send a PR!!?