Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix provisioning script certificate parsing #95

Merged
merged 2 commits into from
Feb 23, 2024

Conversation

kstribrnAmzn
Copy link
Member

@kstribrnAmzn kstribrnAmzn commented Feb 22, 2024

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:

  • I have tested my changes. No regression in existing tests.
    • Not really applicable
  • 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.

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.

Issue - FreeRTOS#94
@kstribrnAmzn kstribrnAmzn requested a review from a team as a code owner February 22, 2024 21:42
tools/provision.py Outdated Show resolved Hide resolved
@kstribrnAmzn
Copy link
Member Author

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

@kstribrnAmzn
Copy link
Member Author

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

@kstribrnAmzn kstribrnAmzn merged commit 0ce8db0 into FreeRTOS:main Feb 23, 2024
8 of 10 checks passed
@kstribrnAmzn kstribrnAmzn deleted the fixProvision branch February 23, 2024 16:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants