build-ca throws error message

When you follow the Ubuntu guide to configure OpenVPN and use Ubuntu 12.04 you might get an error message like

*root@ ./build-ca *
grep: /etc/openvpn/easy-rsa/openssl.cnf: No such file or directory
pkitool: KEY_CONFIG (set by the ./vars script) is pointing to the wrong
version of openssl.cnf: /etc/openvpn/easy-rsa/openssl.cnf
The correct version should have a comment that says: easy-rsa version 2.x

To fix it, edit the vars file and specify the direct path of your easy-rsa folder and the name of the openssl configuration file.

export EASY_RSA="pwd" export EASY_RSA="/etc/openvpn/easy-rsa/2.0" #export KEY_CONFIG=$EASY_RSA/whichopensslcnf $EASY_RSA export KEY_CONFIG="$EASY_RSA/openssl-1.0.0.cnf"

You can then continue the tutorial with

source vars ./clean-all ./build-ca ...

build-ca throws error message
Share this