I see in a lot of client programs (such as OpenVPN Connect), you can give a link to what I assume is the ovpn file, so, I tried doing that myself. I hosted my .ovpn file on my website, and when I linked it to it via the url (
https://www.example.com/file.ovpn), it wouldn't work, it said something about invalid certificate or something. It works when I provide the file manually hosted on my client machine.
So my question is how to host .ovpn files on a web server, and If I did it incorrectly, tell me what I did wrong and how to fix it.