esp-google-iot icon indicating copy to clipboard operation
esp-google-iot copied to clipboard

iotc_create_iotcore_jwt returned with error: 71 (CA-3)

Open renakim opened this issue 5 years ago • 5 comments

Hello, I set up the Google IoT core settings for the example and build successful. But after executing it with idf.py monitor command, the data does not come into IoT core. (IDF version: v4.0) I checked with ESP_LOGI and an error occurs in the function below.

...
I (5974) APP: Initializing SNTP
I (5974) APP: Waiting for system time to be set...
I (7984) APP: Time is set...
I (7984) gpio: GPIO[27]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0 
I (8094) mqtt_task: iotc_create_iotcore_jwt returned with error: 71l

The error code is IOTC_JWT_FORMATTION_ERROR. Could you check this problem?

renakim avatar Nov 26 '19 00:11 renakim

Check you Private Key, make sure it's correct and includes ------BEGIN EC PRIVATE KEY------ and ------END EC PRIVATE KEY----- and everything in-between

meltdown03 avatar May 26 '20 22:05 meltdown03

Hi! I have the same problem over here.

tomascharad avatar Apr 28 '21 02:04 tomascharad

@meltdown03 , do you have any lights on what could be happening for testing other ways?

tomascharad avatar Apr 28 '21 15:04 tomascharad

No, sorry, I never got this error.

On Wed, Apr 28, 2021, 10:14 AM Tomás Charad @.***> wrote:

@meltdown03 https://github.com/meltdown03 , do you have any lights on what could be happening for testing other ways?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/espressif/esp-google-iot/issues/9#issuecomment-828538929, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABPBQCAPRMM2DYUEQ7U7NQLTLAQ5RANCNFSM4JRQRYLA .

meltdown03 avatar Apr 28 '21 17:04 meltdown03

Hi! I was able to solve the problem by creating elliptic curve keys.

tomascharad avatar May 01 '21 16:05 tomascharad