where and how to put keys and crts in openVPN Fedora 14

Greetings,

I am running Fedora 14 on a Dell E5410 laptop.  OpenVPN is installed and I"m trying to configure it for a connection BUT since I'm clueless about finding my way around Fedora, I can't.

Problem 1) I have my key files and config file sitting on my desktop.  Problem is I have no idea how to copy them to the appropriate folders or even where those folders are.  

Problem 2) Once the files are in their proper place, I need to understand how to set up the connection ... good news is, I should have all the information necessary to do this.

I cannot emphasis enough that Linux is an entirely new world to me so assume I know nothing ... except that I know how to enter the shell prompt in root so if someone could tell me the commands to place these files where they need to go.

Thanks!
LVL 1
max7Asked:
Who is Participating?
 
arnoldCommented:
sudo is the means by which you can elevate your rights.
sudo bash
once you provide your password, you should have root rights on the system.
0
 
arnoldCommented:
Are you configuring it for establishing a connection to an external server or is your fedora will be the openvpn server.

http://openvpn.net/index.php/open-source/documentation/howto.html
0
 
max7Author Commented:
I am trying to connect to a remote server so I would be the client ... I have scoured the internet for a clear tutorial on how to setup the client but I have found nothing that fits the bill for someone at my level.

On top of that, when I try to drop files inside the openvpn folder, it says I do not have permission because (I guess) I am logged in as a regular user and not as root.   I tried to log out and log back in as root but I can't see way to do that.  I see no user "root" offered at the login prompt.

Furthermore, SELinux is getting in on the act; it seems to prevent openvpn from reading one of my certs.  I find a command line that put SELinux in passive mode which allowed the VPN to try and connect but it eventually timed out.

The whole situation is a convoluted, frustrating mess.
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

 
arnoldCommented:
On the server they need to generate and provide you the privae/public keys while keeping the public key and adding it in the cert directory.
You would have to reference the key and the certificate within the client configuration.
You would also need to have the CA certificate from the server to which you will be connecting to avoid errors due to trust issues.
usually once you login, you would run sudo bash to get a shell with elevated rights.
0
 
max7Author Commented:
>>>On the server they need to generate and provide you the privae/public keys while keeping the public key and adding it in the cert directory.

Originally, I was setup on a windows 7 machine and they sent me keys and certs then.  Would the keys and certs they sent me when I was windows work for linux or must they generate completely new keys and certs?
0
 
arnoldCommented:
Yes they might not if the computer name changed.
But you can try.
0
 
max7Author Commented:
ok ... so the question is: how do I do this?

>>>You would have to reference the key and the certificate within the client configuration.

How?  For instance, what are the commands I would type in a terminal so the necessary files are in the proper folders?

>>>usually once you login, you would run sudo bash to get a shell with elevated rights.

I have no idea what this is or how the command looks

If you can point me to a decent tutorial on the web that would be fantastic, but all that I have seen are written a) mostly for server side and b) assuming you know linux command line i.e. it does not speak to a novice.
0
 
arnoldCommented:
you would need to edit the files which are likely in /etc/openvpn
Here the issue depends on which editor is best for you:
vi emacs etc
rpm -qa | grep -i vpn
rpm -ql <packageNameForOpenVPN>
The above line will list where all the files from the package are.
You would need to look where the file for the client configuration is.
0
 
arnoldCommented:
http://zhaoke.com/blog/436.html
You can use the example provided at http://www.zeroshell.net/eng/openvpn-client/ to configure your own.
0
 
jimmyray7Commented:
Have you tried just copying the config and certificate files to /etc/openvpn and connecting?   Since you're a client that should be all you need to do.
0
 
max7Author Commented:
>>>Have you tried just copying the config and certificate files to /etc/openvpn and connecting?

I tried this but Linux tells me my user does not have permission to move the files to this folder ... how would get around this?
0
 
max7Author Commented:
Thanks for the help ... Linux isn't the easiest OS to jump into I guess.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.