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

Options: Expand alias '--days' to all suitable options with a period #674

Merged
merged 3 commits into from
Sep 1, 2022

Conversation

TinCanTech
Copy link
Collaborator

Option alias '--days=NUMBER' can now be used for all other options which
indicate a validity period.

  • Option: --days

This global option is an alias for one of the following:

  • Expiry days for a new CA.
    eg: '--days=3650 build-ca'
  • Expiry days for new/renewed certificate.
    eg: '--days=1095 renew server'
  • Expiry days for certificate revokation list.
    eg: '--days=180 gen-crl'
  • Cutoff days for commands: show-expire or renewable.
    eg: '--days=90 show-expire'"

The alias '--days' is now ONLY applied to the variable which requires it.
eg: If building a certificate then the appropriate variable for that type
is set. The other possible uses are not set by the same use.

Closes: #647

Signed-off-by: Richard T Bonhomme tincantech@protonmail.com

Option alias '--days=NUMBER' can now be used for all other options which
indicate a validity period.

* Option: --days

This global option is an alias for one of the following:
* Expiry days for a new CA.
  eg: '--days=3650 build-ca'
* Expiry days for new/renewed certificate.
  eg: '--days=1095 renew server'
* Expiry days for certificate revokation list.
  eg: '--days=180 gen-crl'
* Cutoff days for commands: show-expire or renewable.
  eg: '--days=90 show-expire'"

The alias '--days' is now ONLY applied to the variable which requires it.
eg: If building a certificate then the appropriate variable for that type
is set. The other possible uses are not set by the same use.

Signed-off-by: Richard T Bonhomme <tincantech@protonmail.com>
@TinCanTech
Copy link
Collaborator Author

TinCanTech commented Aug 31, 2022

Coincidence: Issue #647 -> PR #674 [M-IV]

@TinCanTech TinCanTech self-assigned this Aug 31, 2022
@TinCanTech TinCanTech added enhancement Major Changes Changes between Major 3.X version numbers - X is Major Applicable to v3.0.x PRs welcome Version 3.1.x labels Aug 31, 2022
Signed-off-by: Richard T Bonhomme <tincantech@protonmail.com>
Signed-off-by: Richard T Bonhomme <tincantech@protonmail.com>
@TinCanTech TinCanTech merged commit df6b8bf into OpenVPN:master Sep 1, 2022
@TinCanTech TinCanTech deleted the expand-days branch October 28, 2022 00:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Applicable to v3.0.x PRs welcome ChangeLog Item enhancement Major Changes Changes between Major 3.X version numbers - X is Major Version 3.1.x
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Option --days can be used as an alias for all commands which have a validity period
1 participant