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:
[x] I have tested my changes. No regression in existing tests.
Not really applicable
[x] I have modified and/or added unit-tests to cover the code changes in this Pull Request.
Not applicable. This only updates the provisioning script
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.
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....
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.