Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

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

How do I get the keys & certificate to work on openvpn client? I have been given those by the VPN provider. But openvpn needs more than user key & cert?

share|improve this question
  1. Download file cert.pem from OpenVPN Server. (System Admin can help you.)

  2. Install OpenVPN Client.

    sudo apt-get install openvpn

  3. If you put your cert.pem on this path /home/your_account_name/openvpn-client/cert.pem when you connect by OpenVPN client you must use this command :

    sudo openvpn –client –pull –comp-lzo –nobind –dev tap0 –ca /home/your_account_name/openvpn-client/cert.pem –auth-user-pass –remote Your_IP_Of_OpenVPN_Server

** This command has one line.

4 . It’s complete.


hope this helps.

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.