Importing .ovpn to Openvpn connect - issue

Official client software for OpenVPN Access Server and OpenVPN Cloud.
Post Reply
vroisvpn
OpenVpn Newbie
Posts: 1
Joined: Tue Apr 04, 2017 8:34 pm

Importing .ovpn to Openvpn connect - issue

Post by vroisvpn » Tue Apr 04, 2017 8:40 pm

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?

NckCmptr
OpenVpn Newbie
Posts: 1
Joined: Mon Apr 10, 2017 2:27 pm

Re: Importing .ovpn to Openvpn connect - issue

Post by NckCmptr » Mon Apr 10, 2017 2:29 pm

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

nehakakar
OpenVpn Newbie
Posts: 11
Joined: Tue Jul 11, 2023 1:29 pm

Re: Importing .ovpn to Openvpn connect - issue

Post by nehakakar » Tue Jul 11, 2023 7:56 pm

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.

Post Reply