OpenVPN easy-rsa: Common Name set at vars
Solution 1:
I just had a quick look at easy-rsa
source code I found this:
# Default CN only when not in global EASYRSA_BATCH mode:
[ $EASYRSA_BATCH ] && opts="$opts -batch" || export EASYRSA_REQ_CN="Easy-RSA CA"
Apparently it will just ignore EASYRSA_REQ_CN
when not running in batch mode (EASYRSA_BATCH
). This must be some by-design decision that goes out of my understanding of the tool.
For anyone facing the same issue, adding the following to your vars
will fix this:
set_var EASYRSA_BATCH "yes"
WARNING: when running in batch mode the tool won't ask for ANY user input and might destroy previous information / generate errors. Test your config before using this mode.