[[+content_image]]
M
M
Maxim2015-08-30 21:08:58
linux
Maxim, 2015-08-30 21:08:58

Why doesn't openssl and vars config file work in easy rsa 3?

The crux of the matter is that when you change the parameters in openssl-1.0.cnf, nothing changes.
When using easy rsa 3 the config script doesn't work either

[[email protected] root-ca]# ./vars
You appear to be sourcing an Easy-RSA 'vars' file.
This is no longer necessary and is disallowed. See the section called
'How to use this file' near the top comments for more details.
./vars: line 38: return: can only `return' from a function or sourced script
./vars: line 46: set_var: команда не найдена
./vars: line 56: set_var: команда не найдена

piece of file
if [ -z "$EASYRSA_CALLER" ]; then
  echo "You appear to be sourcing an Easy-RSA 'vars' file." >&2
  echo "This is no longer necessary and is disallowed. See the section called" >&2
  echo "'How to use this file' near the top comments for more details." >&2
  return 1
fi

set_var EASYRSA	"$PWD"
set_var EASYRSA_OPENSSL	"openssl"

Help me to understand. factory vars file. I just uncommented a few options for an example.
googling gives very little information, and then, on setting up openvpn, which is not needed

Answer the question

In order to leave comments, you need to log in

[[+comments_count]] answer(s)
A
Alex Chistyakov, 2015-08-30
@maxpointn2point

Judging by this text:
You appear to be sourcing an Easy-RSA 'vars' file.
This is no longer necessary and is disallowed. See the section called
'How to use this file' near the top comments for more details.
easy-rsa no longer needs to do ". ./vars". What exactly needs to be done instead - I can’t say now, I have 2.2.2, I need to look at how it became in 3.
Ah, well, here it is:
# vars.example contains built-in examples to Easy-RSA settings. You MUST name
# this file 'vars' if you want it to be used as a configuration file. If you do
# not, it WILL NOT be automatically read when you call easyrsa commands.
It is enough just to rename vars.example to vars and uncomment / change the necessary settings there, the rest of the scripts will automatically read it, you do not need to source it manually.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question