{"id":349,"date":"2016-08-07T21:30:15","date_gmt":"2016-08-07T21:30:15","guid":{"rendered":"https:\/\/carson.fenimorefamily.com\/?p=349"},"modified":"2016-09-13T12:12:30","modified_gmt":"2016-09-13T12:12:30","slug":"how-to-get-a-ovpn-file-onto-ios-device-via-http","status":"publish","type":"post","link":"https:\/\/carson.fenimorefamily.com\/?p=349","title":{"rendered":"How to get an ovpn file onto iOS device via HTTP"},"content":{"rendered":"<p>Recently I wanted to get a VPN connection from a phone to an openvpn server.  The openvpn app only provides two or three options for getting your ovpn file: 1) use itunes, 2) go to a website in safari that has the .ovpn file, or 3) send via mail.  <\/p>\n<p>Option 1 was out since the phone was locked down enough to not permit me to transfer apps.  Not sure why &#8211; likely just a policy of the phone (i dont own the phone). <\/p>\n<p>Option 3 is less secure so I skipped that.<\/p>\n<p>Option 2 is easy &#8211; I only had to make a few mods off what I found via Mr. Google:<\/p>\n<ul>\n<li>Make the .ovpn file have a unified format.  Some places on the internet suggested you could have configuraiton lines that looked like the following:\n<pre>\r\nca [inline]\r\ncert [inline]\r\nkey [inline]\r\n<\/pre>\n<p>However this doesn&#8217;t actually work.  Instead, just delete those lines and stuff the ca, cert, key, and tls keys under the appropriate tags (they have the same name as the config lines)<\/p>\n<\/li>\n<li>Ensure your web server has the right mime type.  The .ovpn mime type is &#8220;application\/x-openvpn-profile&#8221;, and can be added to your httpd.conf like this:\n<p><code><br \/>\n  &lt;IfModule mime_module&gt;<br \/>\n...<br \/>\n    AddType application\/x-openvpn-profile .ovpn<br \/>\n...<br \/>\n<\/code>\n<\/li>\n<\/ul>\n<p>I then pointed my browser at the .ovpn file, at which point safari recognizes that you can open it in openvpn.  All worked marvellously thereafter.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Recently I wanted to get a VPN connection from a phone to an openvpn server. The openvpn app only provides two or three options for getting your ovpn file: 1) use itunes, 2) go to a website in safari that has the .ovpn file, or 3) send via mail. Option 1 was out since the &hellip; <a href=\"https:\/\/carson.fenimorefamily.com\/?p=349\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">How to get an ovpn file onto iOS device via HTTP<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-349","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/carson.fenimorefamily.com\/index.php?rest_route=\/wp\/v2\/posts\/349","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/carson.fenimorefamily.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/carson.fenimorefamily.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/carson.fenimorefamily.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/carson.fenimorefamily.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=349"}],"version-history":[{"count":4,"href":"https:\/\/carson.fenimorefamily.com\/index.php?rest_route=\/wp\/v2\/posts\/349\/revisions"}],"predecessor-version":[{"id":354,"href":"https:\/\/carson.fenimorefamily.com\/index.php?rest_route=\/wp\/v2\/posts\/349\/revisions\/354"}],"wp:attachment":[{"href":"https:\/\/carson.fenimorefamily.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=349"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/carson.fenimorefamily.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=349"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/carson.fenimorefamily.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=349"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}