Login

Forgot password?

We love free and open web!

Author Topic: Exporting openvpn conf + crt file to ovpn format  (Read 12702 times)

Offline zurich

  • Newbie
  • *
  • Posts: 5
    • View Profile
Exporting openvpn conf + crt file to ovpn format
« on: February 04, 2013, 10:09:56 PM »


I have a working openvpn connection on a ubuntu laptop. When I export it (using network-manager) I get a conf file. I need an ovpn file so I can configure my openvpn app on my iPhone. I also have a crt file which I used to configure my laptop with - if it's any help. Trying to send the conf file to via mail and import it yielded an error message about a missing crt file. Sending the crt file create a profile that I'm not aware how to use.

So the simplest solution (to me at least) is to convert the conf+crt to ovpn file. Can it be done? Other suggestions on how to make the app are also appreciated...

Offline timallen

  • Newbie
  • *
  • Posts: 45
    • View Profile
Re: Exporting openvpn conf + crt file to ovpn format
« Reply #1 on: February 04, 2013, 10:17:44 PM »
I believe you can just change the file extension to ovpn and then add the contents of your crt file to your ovpn file like this.

Quote
resolv-retry infinite
persist-key
persist-tun
persist-local-ip
persist-remote-ip
comp-lzo
verb 4
mute 5
tun-mtu 1500
mssfix 1400
auth-user-pass
reneg-sec 0
route-method exe
route-delay 2
float

#http-proxy-retry # retry on connection failures
#http-proxy 0.0.0.0 80 password.txt basic

<ca>

-----BEGIN CERTIFICATE-----

<<CONTENTS OF CRT/CA FILE HERE>>

-----END CERTIFICATE-----

</ca>

« Last Edit: February 04, 2013, 10:18:59 PM by Administrator »