Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top
wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
rpm -Uvh epel-release-6-8.noarch.rpm

I did yum install openvpn in the guide then did the following:

mkdir -p /etc/openvpn/easy-rsa/keys
cp -rf /usr/share/openvpn/easy-rsa/2.0/* /etc/openvpn/easy-rsa

Fails. I get:

ls -la /usr/share/openvpn/
total 8
drwxr-xr-x  2 root root 4096 Jul 31 21:19 .
drwxr-xr-x 64 root root 4096 Sep 20 20:26 ..

Where do I find the easy-rsa keys? I'm told in the guide I need to edit /etc/openvpn/easy-rsa/vars but I can't find the vars. What I did find was:

ls /usr/share/doc/openvpn-*/sample/sample-keys
ca.crt  ca.key  client.crt  client.key  dh1024.pem  pass.crt  pass.key  pkcs12.p12  README  server.crt  server.key
share|improve this question

Easy-rsa was bundled with OpenVPN 2.2.x and earlier. If you're using OpenVPN 2.3.x, you need to download easy-rsa separately from here.

Location of easy-rsa up to openvpn 2.2.x:

  • installed from rpm or deb: /usr/share/doc/packages/openvpn or /usr/share/doc/openvpn
  • installed from a .tar.gz file: in the top level directory of the expanded source tree.

Copy the easy-rsa directory to /etc/openvpn/easy-rsa/ and generate your own set of keys and certificates as described in the documentation.

Do not use the sample keys and certificates for a production environment.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.