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

bootstrap: check existence of openssl's commands #4059

Closed
wants to merge 1 commit into from

Conversation

kkang-wr
Copy link

@kkang-wr kkang-wr commented Apr 16, 2021

It calls openssl's commands 'dhparam' and 'pkcs12' in script bootstrap
which are configurable based on openssl configure options 'no-dh' and
'no-des'. So check existence of these commands. If not exist, abort from
running of the script.

  1. https://github.com/openssl/openssl/blob/master/apps/build.info#L37
  2. https://github.com/openssl/openssl/blob/master/apps/build.info#L22

Signed-off-by: Kai Kang kai.kang@windriver.com

It calls openssl's commands 'dhparam' and 'pkcs12' in script bootstrap
which are configurable based on openssl configure options 'no-dh' and
'no-des'. So check existence of these commands. If not exist, abort from
running of the script.

1. https://github.com/openssl/openssl/blob/master/apps/build.info#L37
2. https://github.com/openssl/openssl/blob/master/apps/build.info#L22

Signed-off-by: Kai Kang <kai.kang@windriver.com>
@kkang-wr kkang-wr changed the title bootstrap: check commands of openssl exist bootstrap: check existence of openssl's commands Apr 16, 2021
@alandekok
Copy link
Member

This just aborts the entire script if those commands don't exist. Why not check for the existence of the commands, and skip them if they don't exist?

i.e.

if openssl supports FOO
   run command foo

@kkang-wr
Copy link
Author

I suppose these openssl commands are essential to create certificates in this scripts. Without these commands, script bootstrap should be unfunctional.

@alandekok
Copy link
Member

You can always run the scripts on another system. So these aren't critical fixes.

@alandekok alandekok closed this Apr 19, 2021
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.

None yet

2 participants