I can download client.ovpn and import into OpenVPN Connect via file on my iPhone.
However, when I try to import via URL, it complains: "The operation couldn't be completed (ErrorParserDomain error 103)".
I have set up the url as https://www.mysitename.com/cert.ovpn, which re-write to https://www.mysitename.com/cert.php in .htaccess
The cert.php is like below. I tried to search all over the google, but unable to find answer. Can someone help me on this?
Thank you!
Code: Select all
<?php
header( "Content-type: application/x-openvpn-profile" );
header( "X-OpenVPN: 1" );
echo file_get_contents( __DIR__ . "/client.ovpn" );
?>