Closed bjoern-r closed 9 months ago
@bjoern-r Thanks for this report - I confirm this is a bug.
The fix required is at line 5582:
unset -v EASYRSA_CERT_EXPIRE alias_days
Remove EASYRSA_CERT_EXPIRE
from that line and it should work correctly.
There is also the possibility to remove line:31
from openssl-easyrsa.cnf
:
default_days = $ENV::EASYRSA_CERT_EXPIRE # how long to certify for
Easy-rsa always sets environment variables and SSL command options for dates.
chaning the unset line worked for me.
I first tried to remove line 31 from openssl-easyrsa.cnf
but this get regenerated if the file missing so my understanding was that this file should stay like this.
I have been considering possible solutions.
Changing easyrsa
is simplest but changing openssl-easyrsa.cnf
is a better long-term solution because it leaves less ambiguity concerning which commands are used for expiry dates.
For Easy-RSA v3.2 the fix is: 2a8c0de
Fixing v3.1.7 is not necessary.
@bjoern-r I appreciate this bug report.
EasyRSA Version Information
description
When the
--startdate
and--enddate
options are used the openssl execution fails with the error message:where the line in
openssl-easyrsa.cnf
has the following content.My understanding is that when
--enddate
is used EASYRSA_CERT_EXPIRE will be unset on line 5582 which will make openssl complain about the missing ENV variable.When
default_days
is hard coded to a number then--enddate
is working as expected.