Question

OpenVpn issue with creating separate authentication credentials

Posted February 11, 2016 2k views
UbuntuVPNLinux Commands

when adding the command ./build-key client1 i receive the following,
Please edit the vars script to reflect your configuration,
then source it with “source ./vars”.
Next, to start with a fresh PKI configuration and to delete any
previous certificates and keys, run “./clean-all”.
Finally, you can run this tool (pkitool) to build certificates/keys.

Linux newbie, a bit stuck at this point.

Thanks you

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
1 answer

Hello,

This error means that the file /etc/openvpn/easy-rsa/vars still contains the default values. You will want to open the file with a command such as nano /etc/openvpn/easy-rsa/vars and then modify the below values

export KEY_COUNTRY
export KEY_PROVINCE
export KEY_CITY
export KEY_ORG
export KEY_EMAIL
export KEY_OU

export KEY_NAME

You want to update the values on the right side of the “ to match what you want your certificate to say. So something like this:

export KEY_COUNTRY="US"
export KEY_PROVINCE="TX"
export KEY_CITY="Dallas"
export KEY_ORG="My Company Name"
export KEY_EMAIL="sammy@example.com"
export KEY_OU="MYOrganizationalUnit"

export KEY_NAME="server"

Then source it as it requests and try generating your keys again.

Submit an Answer