How to import OpenVPN certificate on Android?
I have a new phone with Android 4.
1, which is not a smart phone, so I want to ask for advice how to import a certificate, which is needed by the application on the phone.
I know this is an old question, but I thought I'd add a solution, in case anyone else is using a dumb phone like me. OpenVPN 2.3.5 supports the newer methods of adding certificates. You can do this from the GUI and it's pretty easy to set up.
Go to "Applications -> Settings -> Security". On the bottom-left, tap "Add New Certificate." Select "Use a custom certificate". Select the OpenVPN config file (it should be automatically loaded). Fill in the details in the form. As far as importing the cert on a dumb phone, you should be able to do that with any app.
How do I find my OpenVPN certificate?
You will find it in /etc/openvpn/ovpn.
Example: cp ovpncert ovpnclient. I have two certificates in the ovpn file. How do I know which one is correct and which one will be used? To check which cert has been loaded in the ovpn config, open a terminal and type: cat ovpn. Do you recommend having more than one certificate? Or do I just need to copy both ovpncerts, or just one (I am using the .crt). If I use just one, do I really need two certs in my crt file?
I have two certs in the ovpn file. Or do I just need to copy both ovpncerts, or just one (I am using the .crt).
First of all, you need to install the OpenVPN certificate in the server itself, not on the client. If you have installed the certificate, you can verify that it is properly created by the following command: The default is 1 - this will try to get an OpenVPN client certificate for every connection that you make. If you do not wish to authenticate your client automatically, you can instead disable the automatic authentication by changing the default at line 1 to 0. For example, I want to run the program without authenticating every time I connect, so in the first version I would simply remove the following line from the ovpn file: 1
If you are interested to know the name and password, open a terminal and type the following: 1
Cat ~/.ssh/idrsa.pub
The name is the name of the remote server, and the password is the OpenVPN client password. If you wish to change the password you can type: 1
Passwd. Then enter the new password.
How do I install a VPN certificate on my Android phone?
You need a few things: Your phone needs to be rooted in order to install the OpenVPN app.
After rooting your phone, launch the OpenVPN client and install the .apk to your SD card. Your computer (that you'll use as a server) needs to be running VPN software, such as Tunnelblick (). This will be used to download your VPN cert to the openvpn config file on the computer, then transfer it over to the mobile device. We're not going to walk through that part yet, but keep an eye out for it.
Setting up an OpenVPN client on an Android phone. This is the point where the whole rooting thing really starts getting hairy. We already talked about this in our article "How do I root my Android phone? Here's a quick and dirty guide for doing so." We'll skip over that part, since we assume you did it in the last guide. For now, you're just going to assume you've successfully rooted your phone and got yourself a new terminal emulator. If you need help there, consult your friendly neighborhood Android developer.
With the terminal emulator open, head over to the directory where you put the OpenVPN files. It should look something like this: cd ~ ls /data/app-lib/tutorialopenvpn.rootfs ls cd
Open the root.txt file in the root.txt with your text editor and change the lines to read as follows:
Server-config="/usr/local/etc/openvpn/server-server.conf" ca-cert=/data/raw/ca.crt server-cert=/data/raw/server.crt key=/data/raw/server.key dev tun protocol openvpn compression client-pull-verify client-to-client connection-dir /etc/openvpn/auth.d network-config "/etc/openvpn/servers/test-server/net.txt" ifconfig-push interface "192.168.1"
(As we said, it's assumed that you've configured your computer as a test-server already. If you haven't, you should go find a guide or figure that out now.) Save the file and close the file manager you opened in the terminal.
Related Answers
What is TLS/SSL Protocol?
TLS stands for Transport Layer Security and it is a protocol used to create a secure connect...
What is certificate and how it works?
When a user goes to a website, the user sends a request for information t...
Where is my OpenVPN certificate?
First, you need to obtain a VPN certificate file. To get a certificate...