-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
How to use the vars
file
#1027
Comments
The systemic cause of this problem can be found here: easy-rsa/doc/EasyRSA-Advanced.md Lines 31 to 39 in 060299f
Specifically:
Unless Example:
The correct solution is to not allow However, in a single PKI installation, this does not matter. For a multi-PKI installation the new version allows a single option With one more change, the "conflicting vars file" error can also be removed and fall back to the documented hierarchy ONLY -- But keep the check to ensure that the PKI has not changed unexpectedly. |
This has been resoled, see #1015 |
TLDR version;
See: doc/EasyRSA-Advanced.md
EasyRSA uses a hierarchy to select which
vars
file to use. However, this is approachcan easily lead to using the wrong
vars
file and subsequent mistakes.Instead, this hierarchy has been slightly modified.
The default
vars
file is now ALWAYS./vars
, the current working directory.If this file exists then it can potentially conflict with other
vars
files.If this file does not exist then there are no potential conflicts.
For a single PKI, using default directory
./pki
, and the defaultvars
file./vars
, is acceptable.If a
vars
file also exists in the PKI then that will conflict with the default.It is recommended but not required, to move the
vars
file to the PKI, thusremoving the default
./vars
file and the conflict.For multiple PKIs, it is strongly recommended to use a
vars
file inside each PKIand then use
easyrsa --pki=DIR
to declare which PKI you wish to use. This willauto-select the correct
vars
file, inside the declared PKI.This method can not use
vars
to accidentally set a different PKI.If a default
./vars
file also exists then it will conflict with the PKIvars
file.After careful consideration, it has been found that the
vars
file is better suitedto be used inside each PKI, instead of a global, default
./vars
file.However, for a single PKI installation, the
vars
file location is moot, providedthat there is only one
vars
file.There is also a new command
make-vars
, which can be used to create avars
file.To use
make-vars
, you must direct the output to the desired location:Redirecting the output means that you can select where you need the
vars
file.The text was updated successfully, but these errors were encountered: