Answer the question
In order to leave comments, you need to log in
[[+content_image]]
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: команда не найдена
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"
Answer the question
In order to leave comments, you need to log in
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 questionAsk a Question
731 491 924 answers to any question