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

Only verify working environment for recognised commands #985

Merged
merged 1 commit into from
Jul 18, 2023

Conversation

TinCanTech
Copy link
Collaborator

Otherwise, unrecognised commands trigger missing PKI and CA errors, instead of the correct 'unrecognised command' error.

Otherwise, unrecognised commands trigger missing PKI and CA errors,
instead of the correct 'unrecognised command' error.

Signed-off-by: Richard T Bonhomme <[email protected]>
@TinCanTech TinCanTech self-assigned this Jul 17, 2023
@TinCanTech TinCanTech added this to the v3.1.6 milestone Jul 17, 2023
@TinCanTech TinCanTech linked an issue Jul 17, 2023 that may be closed by this pull request
@TinCanTech
Copy link
Collaborator Author

EG:

$ easyrsa --pki-dir=ns --nopass bild-cat

WARNING
=======
No Easy-RSA 'vars' configuration file exists!

IMPORTANT:
  The preferred location for 'vars' is within the PKI folder.
  To silence this message move your 'vars' file to your PKI
  or declare your 'vars' file with option: --vars=<FILE>

EasyRSA version ~VER~

Error
-----
Unknown command 'bild-cat'. Run without commands for usage help.

@TinCanTech TinCanTech merged commit 27da328 into OpenVPN:master Jul 18, 2023
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

verify_working_env() is called too early for invalid commands
1 participant