Open VPN cannot run ./build-ca
When I try to run I get the following error:
Code:
error on line 198 of /etc/openvpn/easy-rsa/openssl-1.0.0.cnf
140224783447712:error:0E065068:configuration file routines:STR_COPY:variable has no value:conf_def.c:618:line 198
line 198 of openssl-1.0.0.cnf reads:
Code:
subjectAltName=$ENV::KEY_ALTNAMES
Re: Open VPN cannot run ./build-ca
I'm a idiot. I just added the following line to the vars file. working correctly now.
export KEY_ALTNAMES="something"
Re: Open VPN cannot run ./build-ca
you may call yourself an idiot, but your comment certinaly helped me. Thank you.
Re: Open VPN cannot run ./build-ca
I have the same problem and tried adding exportKEY_ALTNAMES="something" to my VARS file but I am still getting the same error?
Re: Open VPN cannot run ./build-ca
Quote:
Originally Posted by
Jacob_Tennant
I have the same problem and tried adding exportKEY_ALTNAMES="something" to my VARS file but I am still getting the same error?
yep it works. THANKS OP!
make sure there is a space between export and key in your VARS... unlike your post.
then rerun:
source vars
./clean-all
./build-ca
Re: Open VPN cannot run ./build-ca
This is the first time I have logged in since probably about 2009. I had to login because your post helped me out so much. I have been searching forever for this answer!! And for that I thank you. :KS
Re: Open VPN cannot run ./build-ca
Re: Open VPN cannot run ./build-ca
Quote:
Originally Posted by
dcorwin822
I'm a idiot. I just added the following line to the vars file. working correctly now.
export KEY_ALTNAMES="something"
Has nobody asked why a clean install of openVPN is broken out of the box? That doesn't seem right.
Re: Open VPN cannot run ./build-ca
Quote:
Originally Posted by
darren-hobbs-l
Has nobody asked why a clean install of openVPN is broken out of the box? That doesn't seem right.
Haha...now that you pointed it out a fresh install is indeed broken, at least on my experience. I expected things to be configured after the installation that I did not even question the fact that the config is broken on first trial of generating certificates.
I mean, it doesn't even ship with a default working config.
Re: Open VPN cannot run ./build-ca
On https://help.ubuntu.com/14.04/serverguide/openvpn.html the steps should also be updated to include setting that variable. This thread helped me!