How do I create an .openvpn file?


New Member
Dear all,

I have installed OpenVPN on one of my idle VPS servers using Nyr's nice script:

That script generates a username.tar.gz file containing the following files:





I would like to provide access to friends that are using "OpenVPN Connect".

OpenVPN Connect requires a .openvpn file that is - in the end - just a textfile containing the necessary information. But I fail when trying to complile the abovementionned files to "username.ovpn".

Is there any tool for automation? Or could someone please give me a forceful hit on the head to improve my thinking?

Thank you very, very much in advance!

Kind regards



New Member
Well, it is meant for OSX and Windows users. If I just rename the username.conf to username.ovpn, OpenVPN Connect refuses to open it and does not recognize it as valid configuration file.

The question is: How do I get "OpenVPN Connect" to work with the files that I have?

It works fine with applications like "Tunnelblick", but not with OpenVPN which is mostly used by the friends that I would like to provide with my "service".

Thanks a lot!

Last edited by a moderator:


VPS Junkie

That's an example user-locked .ovpn file created by OpenVPN-AS, I simply removed the server information.  That is for the default server configuration so if you're only running TCP or UDP etc you will have to make adjustments. 

The best OpenVPN client I have found is SecurePoint OpenVPN it allows you to plugin the certificates and key files then creates a profile for you, it can also import .ovpn files.


This page should be helpful as well, you would just need to change the servers from to your own.

You can also checkout the OpenVPN config man page, it's a bit lengthy but has all the information you'd ever need -
Last edited by a moderator:


New Member
Verified Provider
Yeah, OSX users should be using tunnelblick i believe, and the config is slightly different, some of the options you would use traditionally break the configuration files etc, Just start with a minimal as config and build on top with your common .ovpn settings.

For OpenVPN Connect related issues, I found i had to use an inline style config file i think its called. (Specially for these new dumb phones)











Start with a MIN cert with the certs/ca in the config, and build off that option by option.
Been a while since I've tinkered with OpenVPN ahaha, but I do run a couple of VPN outlets and this is what i vaguely recall


Active Member

Don't know if I'm late to the party, but it's much simpler than most people said:

- For Mac you can use Tunnelblick or Viscosity. Just unpack the .tar.gz and import to the client, no need for any modification.

- For Windows, you can use the OpenVPN community version straight away. Just rename the .conf to .ovpn, and you're set. Don't use OpenVPN Connect, it's meant for the commercial versions.


New Member
You are not late to the party, you answered all my questions and made me happy. :)

Thanks a lot, Nyr!


New Member
I use the script.

How do I create Username & Password for each user?
Thank you.
Last edited by a moderator: