the easy way is put the cert content into the .ovpn file, open both .ovpn and cert files with editor program and modify the .ovpn like the following:
dev tun
tls-client
remote YOUR_SERVER_IP portNo. (or ddns then port no.)
float
redirect-gateway def1
dhcp-option DNS DNS_IP_ADDRESS
pull
script-security 2
comp-lzo
reneg-sec 0
cipher AES-256-CBC
auth SHA256
auth-user-pass
<ca>
-----BEGIN CERTIFICATE-----
Your Ca.crt content (put the cert content here)
-----END CERTIFICATE-----
</ca>
then import this .ovpn file to phone apps. (cert already included) android phone may ask for select cert when you use but just click continue will go. iphone is continue without asking.
the easy way is put the cert content into the .ovpn file, open both .ovpn and cert files with editor ...
echen 發表於 2019-3-19 13:09
you may also change the auth-user-pass method to following inside .ovpn
auth-user-pass pass.txt
then you can creat a pass.txt file with just 2 lines:
User Name
Password
then import both .ovpn and pass.txt then you are no need to input user and password.