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

HSM: Fixup string passing of signing directives #25

Merged
merged 1 commit into from
Aug 20, 2024

Conversation

tdewey-rpi
Copy link
Collaborator

We pass the return value of get_signing_directives as a string - but then double-quote this in the invocation, mixing arguments as one.

This, rightly, causes OpenSSL to complain.

So, let's drop the erroneous double-quotes, and include a line to silence shellcheck in the various sites where we use the result as an argument.

We pass the return value of get_signing_directives as a string - but then double-quote this in the invocation, mixing arguments as one.

This, rightly, causes OpenSSL to complain.

So, let's drop the erroneous double-quotes, and include a line to silence shellcheck in the various sites where we use the result as an argument.
@roliver-rpi
Copy link
Contributor

LGTM!

As an aside, we should really add 'set -e' to the various scripts invoked by systemd to more easily catch bugs / unexpected behaviour in the future.

@tdewey-rpi tdewey-rpi merged commit d3cc391 into main Aug 20, 2024
@tdewey-rpi tdewey-rpi deleted the dev/tdewey/shellcheck-signing branch August 20, 2024 13:01
@timg236
Copy link

timg236 commented Aug 20, 2024

Looks good. Since are multiple HSM abstractions to choose from maybe we should 'standardize' on OPENSSL but allow a set of script helpers to re-target this for a real HSM

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