OPNsense Forum

English Forums => Virtual private networks => Topic started by: asw2012 on September 07, 2022, 07:45:54 AM

Title: OpenVPN + Android
Post by: asw2012 on September 07, 2022, 07:45:54 AM
I have setup OpenVPN on the router v22.7.3_2-amd64.  I've exported the profile for a windows computer, set the three files in the correct folder, all works fine.

What do I have to do to these three files to make them work on an android phone?  I've always just imported an .ovpn file (for instance, from my ASUS router, there was an export for android button that spit out a single file).

thanks.
Title: Re: OpenVPN + Android
Post by: asw2012 on September 07, 2022, 08:11:48 AM
Ahhh figured it out, just change the Export Type to file only

:)
Title: Re: OpenVPN + Android
Post by: bartjsmit on September 07, 2022, 08:13:44 AM
You can easily craft an .ovpn file on Windows like so:

<header lines like dev cipher remote etc>
<cert>
</cert>
<ca>
</ca>
<key>
</key>

Paste the contents of the relevant text files between the tags - e.g. for the cert and ca blocks something like:
-----BEGIN CERTIFICATE-----
MII................
................
.............
-----END CERTIFICATE-----

Install an OpenVPN client on Android (the official one works well) and import the .ovpn file from local storage or SD card.

Bart...