Question

OpenVpn issue with creating separate authentication credentials

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


Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

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.