OpenVPN / easy-rsa

easy-rsa - Simple shell based CA utility
Other
4.01k stars 1.19k forks source link

Warning about moving `vars` to the PKI #1009

Closed TinCanTech closed 12 months ago

TinCanTech commented 1 year ago

If you see this warning about your vars file:

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>

Ignore this message, it will be removed in the next release.

Edit:

~Please, do NOT put your vars file into your PKI.~


The problem is due to setting EASYRSA or EASYRSA_PKI in the vars file.

First, establish if your vars file is Global or Local:

Global:

Local:

~## Do NOT move your vars file to your PKI.~

Note: Setting EASYRSA and EASYRSA_PKI in the vars file is NOT recommended. However, if you do set these variables in vars then it is still supported.

TinCanTech commented 1 year ago

EasyRSA vars file is expected to be in the parent of the PKI.

Changing that in version 3.1.x has proven to be too intrusive.

Note: EasyRSA has not made any changes to force vars in the PKI, it has only added a warning to encourage that use. That warning will be disabled for v3.1.7+.

1008

1014

TinCanTech commented 12 months ago

Follow-up: #1027