How to convert a .ovpn file to a .conf for OpenVPN?

A VPN provider gives .ovpn files that contain the configuration necessary to connect to a VPN server using the command : openvpn name.ovpn

However using this command isn't very clean since it uses a shell that you can't close anymore if you want to keep the connection. Instead I'd like to be controlling the openvpn connection through systemd but it is my understanding that I first need to create a name.conf file in /etc/openvpn so I can then call the command systemctl enable [email protected] which would be handy since it would connect to the VPN server at startup.

How to go from the .ovpn config file to /etc/openvpn/name.conf ?


It's the same thing, you can basically just rename the .ovpnfile into .confand move it into /etc/openvpn