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

APPS {storeutl,gendsa}: give error on extra arguments, improve doc #20156

Closed

Conversation

DDvO
Copy link
Contributor

@DDvO DDvO commented Jan 27, 2023

Point out that CLI options must be given before the final file/URI arg.
So far, they were silently ignored, as well as any extra args.
Also fix in the storeutl doc that there is only one URI arg.

On this occasion, also improve APPS load_key_certs_crls() diagnostics on not finding expected types of contents.

Fixes #20144.

Checklist
  • documentation is added or updated
  • tests are added or updated

@DDvO DDvO added branch: master Merge to master branch approval: review pending This pull request needs review by a committer approval: otc review pending triaged: bug The issue/pr is/fixes a bug triaged: documentation The issue/pr deals with documentation (errors) branch: 3.0 Merge to openssl-3.0 branch branch: 3.1 Merge to openssl-3.1 tests: present The PR has suitable tests present labels Jan 27, 2023
@DDvO DDvO changed the title APPS {storeutl,gendsa`}: give error on extra arguments, improve doc APPS {storeutl,gendsa}: give error on extra arguments, improve doc Jan 27, 2023
@t8m t8m removed branch: 3.0 Merge to openssl-3.0 branch branch: 3.1 Merge to openssl-3.1 labels Jan 27, 2023
@t8m
Copy link
Member

t8m commented Jan 27, 2023

This won't cherry pick to older branches.

@t8m
Copy link
Member

t8m commented Jan 27, 2023

I'd suggest doing just a docfix PR for 3.1/3.0

DDvO added a commit to siemens/openssl that referenced this pull request Jan 31, 2023
…e ignored

... and therefore all options must be given before the final file/URI arg.

This is essentially a backport of the doc portion of openssl#20156 to 3.0 and 3.1,
where the missing error checking/reporting likely will not be added.
@DDvO
Copy link
Contributor Author

DDvO commented Jan 31, 2023

This won't cherry pick to older branches.

Ah, right.

I'd suggest doing just a docfix PR for 3.1/3.0

Done in #20179.

@paulidale paulidale added approval: done This pull request has the required number of approvals and removed approval: review pending This pull request needs review by a committer labels Jan 31, 2023
@openssl-machine openssl-machine added approval: ready to merge The 24 hour grace period has passed, ready to merge and removed approval: done This pull request has the required number of approvals labels Feb 1, 2023
@openssl-machine
Copy link
Collaborator

This pull request is ready to merge

openssl-machine pushed a commit that referenced this pull request Feb 2, 2023
…e ignored

... and therefore all options must be given before the final file/URI arg.

This is essentially a backport of the doc portion of #20156 to 3.0 and 3.1,
where the missing error checking/reporting likely will not be added.

Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from #20179)

(cherry picked from commit 36d85b0)
openssl-machine pushed a commit that referenced this pull request Feb 2, 2023
…e ignored

... and therefore all options must be given before the final file/URI arg.

This is essentially a backport of the doc portion of #20156 to 3.0 and 3.1,
where the missing error checking/reporting likely will not be added.

Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from #20179)
@t8m
Copy link
Member

t8m commented Feb 2, 2023

Merged to master branch. Thank you for your contribution.

@t8m t8m closed this Feb 2, 2023
openssl-machine pushed a commit that referenced this pull request Feb 2, 2023
…ed types of contents

Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from #20156)
openssl-machine pushed a commit that referenced this pull request Feb 2, 2023
Point out that options must be given before the final file/URI arg.

Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from #20156)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approval: ready to merge The 24 hour grace period has passed, ready to merge branch: master Merge to master branch tests: present The PR has suitable tests present triaged: bug The issue/pr is/fixes a bug triaged: documentation The issue/pr deals with documentation (errors)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

storeutl app ignores -certs, -keys, and -crls option
4 participants