Since some days ago I get complaints from users having Android and iOS they cannot connect to OpenVPN server. Windows PC users have no issues.
Error reported is: Peer certificate verification failure
Mikrotik log does show problem but it does not point what the issue is.
Mikrotik OS version is 7.23.5
OpenVPN on Android is 3.7.3
Certificates on server are ok, valid, not expired.
After some search it seems that with latest updates of OpenVPN apps on mobile devices, those do not work with AES 256 CBC ciphers any more, which is what I have set on my OpenVPN server.
So I changed configuration on server to allow AES 256 GCM by checking that option. That alone did not change a thing.
I edited .ovpn profile config I have from before and replaced AES-256-CBC with AES-256-GCM and imported that profile to OpenVPN on Android phone. Did not help.
So, what should I do to make this work? I would like to avoid recreating everything from scratch as I have number of users and forcing them all to reconfigure is quite a work - especially as most of them have no issues.
Here is OpenVPN profile config I tried latest. It works fine on Windows, but on Android- nope
client
dev tun
remote vpn.mydomain.com 1194 tcp
tun-mtu 1400
tls-client
nobind
user nobody
group nogroup
ping 15
ping-restart 45
persist-tun
persist-key
mute-replay-warnings
verb 3
cipher AES-256-GCM
auth SHA256
pull
auth-user-pass
connect-retry 1
reneg-sec 3600
remote-cert-tls server
Here is ovpn server config
name="ovpn-server-tcp"
port=1194
mode=ip
protocol=tcp
netmask=24
mac-address=XX:XX:XX:XX:XX:XX
max-mtu=1500
keepalive-timeout=60
default-profile=vpn
certificate=ovpn-server
require-client-certificate=yes
tls-version=any
auth=sha1,sha256
cipher=aes256-cbc,aes256-gcm
reneg-sec=3600
redirect-gateway=disabled
push-routes="xxxxxxx"
push-routes-ipv6=""
enable-tun-ipv6=no
tun-server-ipv6=::
ipv6-prefix-len=64
vrf=main
user-auth-method=pap