Page 1 of 1

Importing .ovpn to Openvpn connect - issue

Posted: Tue Apr 04, 2017 8:40 pm
by vroisvpn
To make importing .ovpn files easier, I choose to use a method from private internet access https://www.privateinternetaccess.com/pages/openvpn-ios where config files is hosted on a server and have links pointing to it, when the links are opened using safari iOS, it checks to see if openvpn conect is installed and if yes, the config is imported.


I tried to follow the same method but the .ovpn files just opens in plain text, tried couple fix I found online includng modifying htaccess file on the server, but still opens config as text on ioS.

Any advice?

Re: Importing .ovpn to Openvpn connect - issue

Posted: Mon Apr 10, 2017 2:29 pm
by NckCmptr
Hi vroispn,
I've run into this too, if I try and download the .ovpn profile in Safari. I have gotten around this by e-mailing the .ovpn file, then opening the attachment from the e-mail. This will trigger the import into OpenVPN.

NckCmptr

Re: Importing .ovpn to Openvpn connect - issue

Posted: Tue Jul 11, 2023 7:56 pm
by nehakakar
Set the "Content-Disposition" header in your server's response for the .ovpn file to "attachment". This can prompt the browser to treat the file as an attachment and initiate the file download.