Closed matsujirushi closed 2 years ago
Yes, the default autogenerated keysize in IoT Central is 32 bytes, but also supports (and DPS) 64 byte device keys. Will update the sample with longer 64 byte key.
Issue resolved with https://github.com/Azure/azure-sdk-for-c-arduino/pull/30
Describe the bug "Failed decoding SAS key" occurs when trying individual enrollments of SAS with sample code Azure_IoT_Central_ESP32.
To Reproduce
openssl rand -base64 64
command.Expected behavior The SAS Key generation command
openssl rand -base64 64
uses what is written in the Azure IoT Central document. I am generating a 64 byte key, but it seems that Azure_IoT_Central_ESP32 only supports up to 32 bytes.I think you should increase ECODED_SAS_KEY_BUFFER_SIZE in the sample code to 64 or change the Azure IoT Central documentation.
Screenshots
Generate SAS key:
Log: