FreeRTOS / iot-reference-stm32u5

MIT License
43 stars 29 forks source link

Fix provisioning script certificate parsing #95

Closed kstribrnAmzn closed 4 months ago

kstribrnAmzn commented 4 months ago

Description

The STM board returns a slightly different format (ending with 'A=') when generating the public key. This cannot be parsed by Python's cryptography library which instead expects the '==' ending.

Thanks @paulbartell and @AniruddhaKanhere for the help

Test Steps

Snagged an STM32u5 board and followed getting started guide. Before I was receiving....

Generating a new public/private key pair
Error: Could not parse public key.

After the changes provisioning is successful. I am also seeing env_sensor_data and motion_sensor_data published to my account.

Checklist:

Related Issue

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

kstribrnAmzn commented 4 months ago

I'd prefer to address the spelling mistakes in a separate CR as to not overload this rather simple change.

kstribrnAmzn commented 4 months ago

This change doesn't effect spelling failures nor links. These can be addressed in a separate PR.