How to generate OpenVPN .ovpn configuration file

I followed this amazing tutorial and I had a working OpenVPN server.

One thing that I wanted to do is to create .ovpn files. So instead of having the configuration, certificate, private key, etc. in different files I wanted to have everything in the same file.

I found on the Internet how to do this manually, but I wanted to generate different .ovpn for different clients, so I wrote a small Python script.

Feel free to use it, it’s available in the potpourri github repository.

Leave a Reply

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>