clane
By:
clane

OpenVpn issue with creating separate authentication credentials

February 11, 2016 704 views
VPN Linux Commands Ubuntu

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

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.

Have another answer? Share your knowledge.