I set the open vpn server in my microtik, it works correctly with the various clients copying the files in the configuration folder of open vpn but I have problems with the configuration on android that gives me the error there was an error attempting to connect to the selected server.
The export of the various files is done correctly and asks me when creating username and password, the problem arises when I make the connection.
Here is my .ovpn configuration file:
client
dev tun
proto tcp
remote my public ip 1194
infinite resolv-retry
nobind
persist-key
persist-tun
approx
cert client.crt
key client.key
remote-cert-tls server
cipher AES-128-CBC
auth SHA1
auth-user-pass
redirect-gateway def1
verb 3
I solved by creating a .p12 file by following this procedure:
openssl pkcs12 -export -in my-vpn.crt -inkey my-vpn.key -certfile my-ca.crt -out my-vpn.p12
I am having problems connecting form my mobile device as well. I am able to connect through a windows OpenVPN client with a CA.cert, Client.cert, and Client.key.
May I ask for more detail instructions of the ssl command to convert the tee files into a p12? Also, may I ask how is the .ovpn file configured after the changes to the cert files.
PK12 file that was converted and subbed in the opvpn file, was that of the CA, Client or the Server? The process I followed had you make the CA, the CLient and Server certs/key files. I figure I would just have to export that in the PK12 form.
Since you are using the PK12 file, you can not use the uniform method of the openvpn file (imbeding the certs and key in the config file). So my question, what is the location for the PK12 file on the android device?
I hope these questions are clear.
I followed this process for my first walk through, https://www.youtube.com/watch?v=6l1sYGLrlz0. It is very good and about three minutes into the video he performs the key generation and about 5:34 minutes he exports the keys. On the web version, you can pick PEM/PK12 format. I was going to use this to export the certs and keys.
.