Skip to content

Consolidate example scripts#37

Merged
mimizohar merged 7 commits intolinux-integrity:next-testingfrom
stefanberger:consolidate_example_scripts
May 4, 2026
Merged

Consolidate example scripts#37
mimizohar merged 7 commits intolinux-integrity:next-testingfrom
stefanberger:consolidate_example_scripts

Conversation

@stefanberger
Copy link
Copy Markdown
Contributor

Consolidate the example scripts before there are too many of them.

Create ima_gen_signing_key function for creating an IMA signing key and use
it by existing scripts. Move contents from ima-genkey.sh and
ima-genkey-ecc.sh into it.

Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
Create ima_gen_localca function for creating an IMA signing key and use it
by existing scripts. Move code from ima-gen-local-ca-ecc.sh and
ima-gen-local-ca.sh into it.

Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
Create ima_gen_signing_key_localca function for creating an IMA signing key
that also has a self-signed certificate and use it by existing scripts.
Move code from ima-genkey-self-ecc.sh and ima-genkey-self.sh into it.

Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
Allow passing a key algorithm parameter to ima-genkey.sh and support
a few more algorithms.

Also support -? and --help to display the help screen.

Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
Allow passing a key algorithm parameter to ima-genkey.sh.

Also support -? and --help to display the help screen.

Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
Allow passing a key algorithm parameter to ima-genkey-self.sh.

Also support -? and --help to display the help screen.

Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
With ima-gen-local-ca.sh, ima-genkey.sh, and ima-genkey-self-ecc.sh now
supporting command line parameters to take the key algorithm, remove the
now unnecessary scripts for EC keys.

Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
@stefanberger stefanberger force-pushed the consolidate_example_scripts branch from 3cf97fb to b6c404d Compare May 4, 2026 18:10
@mimizohar mimizohar merged commit ba5a09a into linux-integrity:next-testing May 4, 2026
17 of 18 checks passed
@stefanberger stefanberger deleted the consolidate_example_scripts branch May 5, 2026 12:40
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.

2 participants