I believe the problem is here (
easyrsa:line 1738):
# Same as above for the x509-types extensions dir
if [ -d "$EASYRSA_PKI/x509-types" ]; then
set_var EASYRSA_EXT_DIR "$EASYRSA_PKI/x509-types"
else
#TODO: This should be removed. Not really suitable for packaging.
set_var EASYRSA_EXT_DIR "$EASYRSA/x509-types"
fi
If you feel confident to edit the source file then replace that(above) with this(below):
# Same as above for the x509-types extensions dir
if [ -d "$EASYRSA_PKI/x509-types" ]; then
set_var EASYRSA_EXT_DIR "$EASYRSA_PKI/x509-types"
elif [ -d "$EASYRSA/x509-types" ]; then
#TODO: This should be removed. Not really suitable for packaging.
set_var EASYRSA_EXT_DIR "$EASYRSA/x509-types"
else
die "Missing x509-types folder"
fi
I have posted a patch here, which you will be testing:
https://github.com/OpenVPN/easy-rsa/pull/466
https://patch-diff.githubusercontent.com/raw/OpenVPN/easy-rsa/pull/466.patch