As I can't get out which file this is being generated from, I have no idea how to grab the variable that isn't set. But the error resembles an old issue where a variable wasn't correctly set in the default config or sourced variables file.
I do have a default config under /etc/ssl/openssl.cnf
and it's the default packaged with the openssl package.
Here's the full output:
[Torxed@Daylight ipsec.d]$ sudo openssl pkcs12 -export -inkey private/testKey.pem --in certs/testCert.pem -name "My own VPN client certificate" -certfile cacerts/rootCert.pem -caname "StrongSwan Root CA" -out test.p12
140093433759384:error:0E065068:configuration file routines:STR_COPY:variable has no value:conf_def.c:584:line 167
Normally SSL will throw you the file that generates the error, so I'm kinda lost here.
openssl.conf
and the old configuration file didn't have it. Theopenssl.conf.pacnew
contained it (as my package manager pacman honors user changes before system upgrade changes.). Basically I had deferred from the default configuration, so if you're getting this error - I'd suggest starting off with a default configuration and work towards your changes. You'll quickly discover what fields you need and what you can modify/take away. – Torxed Mar 01 '17 at 14:54export KEY_ALTNAMES="somename"
is missing fromeasy-rsa/vars
(see https://bugs.launchpad.net/serverguide/+bug/1504676). I thought it could be something equivalent here... – Matthieu Mar 01 '17 at 14:57