build-ca: Change FATAL error to warning for old openssl-easyrsa.cnf

This will only effect a CA built with custom EASYRSA_EXTRA_EXTS;
The solution being, to use the correct 'openssl-easyrsa.cnf'.

Signed-off-by: Richard T Bonhomme <tincantech@protonmail.com>
This commit is contained in:
Richard T Bonhomme 2022-12-21 13:49:54 +00:00
parent fc8c1c4b2a
commit 4b3458b979
No known key found for this signature in database
GPG Key ID: 2D767DB92FB6C246

View File

@ -1333,9 +1333,13 @@ Missing X509-type 'ca'"
Missing X509-type 'COMMON'"
# Check for insert-marker in ssl config file
if ! grep -q '^#%CA_X509_TYPES_EXTRA_EXTS%' "$EASYRSA_SSL_CONF"; then
die "\
The copy of openssl-easyrsa.cnf in use does not support X509-type 'ca'.
if grep -q '^#%CA_X509_TYPES_EXTRA_EXTS%' \
"$EASYRSA_SSL_CONF"
then
[ "$EASYRSA_BATCH" ] || print
else
warn "\
The openssl config file in use does not support X509-type 'ca'.
* $EASYRSA_SSL_CONF
Please update openssl-easyrsa.cnf to the latest official release."
fi