Azure / dps-keygen

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

dps_cstr - connection string output truncated #15

Closed darenm closed 4 years ago

darenm commented 4 years ago

Tool installed in the the Azure Cloud Shell using the following:

wget https://github.com/Azure/dps-keygen/blob/ota/bin/linux/dps_cstr?raw=true -O dps_cstr
chmod +x dps_cstr

Command executed with the following (values snipped):

./dps_cstr 0<snip>EC e663<snip>34 +8Btl<snip>5KnM= > connection1.txt

The utility appears to emit some console commands to change the output color and truncates the last character ('=') off the primary key.

...
Registration Information received from service: iotc-e9b1c47f-35a7-4041-8dab-928f140794cb.azure-devices.net!
Connection String:
 HostName=iotc-e9b1c47f-35a7-4041-8dab-928f140794cb.azure-devices.net;DeviceId=e66<snip>34;SharedAccessKey=+8BtlMccYXeH<snip>5KnM 
AltaOhms commented 4 years ago

Reproduced the same issue of missing the values missing at the end. @lucadruda any recommendations?

lucadruda commented 4 years ago

We're deprecating that functionality as it's not recommended for IoTCentral connection. Please refer to this: https://docs.microsoft.com/en-us/azure/iot-central/core/concepts-connectivity Closing the issue.