I have Ubuntu server 14.04 on a server with openssl version 1.0.1f and openssh version 6.6.
In my openssl.cnf
I have subjectAltName=${ENV::ALTNAME}
so that I can set subjectAltName
on the commandline when creating certificates.
When I try to start my ssh daemon manually it fails with:
Auto configuration failed
140031266363040:error:0E065068:configuration file routines:STR_COPY:variable has no value:conf_def.c:618:line 224
The problem seems to come from openssl failing to start because environment variable ALTNAME
is unset and hence sshd can't run.
So my question is how can I set the environment variable ALTNAME to some initial value before the sshd service is started?
/etc/environment
which contains a definiton of the$PATH
variable