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

Enable setting the default RSA keysize using swtpm_setup.conf #874

Merged
merged 2 commits into from
Jul 17, 2024

Conversation

stefanberger
Copy link
Owner

This PR adds the ability to provide a default RSA keysize using swtpm_setup.conf. It is used unless the user provided it with command line option to swtpm_setup.

Factor-out read_file_lines from get_default_pcr_banks and pass the array
of lines from the config file into get_default_pcr_banks now. Now other
functions will also be able to access the lines from the config file
without having to re-read the config file.

Signed-off-by: Stefan Berger <[email protected]>
If the user did not provide the RSA keysize to use try to read it from
setup_setup.conf and if nothing is found there fall back to using the
internal default RSA keysize (2048).

Signed-off-by: Stefan Berger <[email protected]>
@stefanberger
Copy link
Owner Author

@elmarco

@stefanberger stefanberger merged commit cc9ee0f into master Jul 17, 2024
2 checks passed
@stefanberger stefanberger deleted the stefanberger/swtpm_setup_conf branch July 17, 2024 22:53
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.

1 participant