-
Notifications
You must be signed in to change notification settings - Fork 2.1k
makefiles/suit: add SUIT_GEN_PUBKEY
variable to inhibit public key generation
#21666
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
Conversation
If we only have access the the public key, we don't want it to be accidentally overwritten by the build system. Intrudce a new `SUIT_GEN_PUBKEY` that defaults to 1, but can be set to 0 to disable auto-generating the public key from the private key (and generating a new private/public key pair if the private key does not exist).
SUIT_GEN_PUBKEY
variable to inhibit pubkey gen
SUIT_GEN_PUBKEY
variable to inhibit pubkey genSUIT_GEN_PUBKEY
variable to inhibit public key generation
It would be nice if you could add some documentation in the Doxygen generated SUIT documentation about this. Otherwise this may become a "hidden gem" that nobody else knows about and therefore nobody uses. |
Where would I add this? Just in |
Since suit does not appear to have a |
You didn't add the documentation yet :( |
I'll write a proper documentation for all those SUIT options in a separate PR 🤞 |
Contribution description
If we only have access the the public key, we don't want it to be accidentally overwritten by the build system.
Intrudce a new
SUIT_GEN_PUBKEY
that defaults to 1, but can be set to 0 to disable auto-generating the public key from the private key (and generating a new private/public key pair if the private key does not exist).Testing procedure
~/.local/share/RIOT/keys/default.pem
(assumingdefault.pem.pub
already exists)examples/advanced/suit_update
examples/advanced/suit_update
withSUIT_GEN_PUBKEY=0
Issues/PRs references