I tried to found a solution here on the forums but I didn't have success...
I have open VPN profile working perfectly on my Windows machine, and now I'm trying to configure the same VPN on my Android Device, I have copied all the files from config folder from windows to my SD card (the certificates and the .ovpn file)
But when I try to connect on android I got this error message and the log below:
Full Log:11:20:06.947 -- VERIFY FAIL -- bad ns-cert-type in leaf certificate
11:20:06.950 -- Transport Error: mbed TLS: SSL read error : X509 - Certificate verification failed, e.g. CRL, CA or signature check failed
11:20:06.952 -- EVENT: CERT_VERIFY_FAIL info='mbed TLS: SSL read error : X509 - Certificate verification failed, e.g. CRL, CA or signature check failed'
I'm using the OpenVPN android version 3.0.5.(1816)11:20:06.191 -- ----- OpenVPN Start -----
11:20:06.193 -- EVENT: CORE_THREAD_ACTIVE
11:20:06.228 -- Frame=512/2048/512 mssfix-ctrl=1250
11:20:06.233 -- UNUSED OPTIONS
8 [tls-cipher] [TLS-ECDHE-RSA-WITH-AES-128-GCM-SHA256:TLS-ECDHE-ECDSA-WITH-AES-1...]
11 [resolv-retry] [infinite]
12 [auth-retry] [none]
13 [nobind]
14 [persist-key]
15 [persist-tun]
18 [verb] [3]
19 [tls-client]
11:20:06.245 -- EVENT: RESOLVE
11:20:06.252 -- Contacting XXX.XXX.XXX.XXX:1194 via UDP
11:20:06.254 -- EVENT: WAIT
11:20:06.267 -- Connecting to [XXX.XXX.XXX.XXX]:1194 (XXX.XXX.XXX.XXX) via UDPv4
11:20:06.627 -- EVENT: CONNECTING
11:20:06.636 -- Tunnel Options:V4,dev-type tun,link-mtu 1602,tun-mtu 1500,proto UDPv4,comp-lzo,cipher AES-256-CBC,auth SHA512,keysize 256,tls-auth,key-method 2,tls-client
11:20:06.640 -- Creds: UsernameEmpty/PasswordEmpty
11:20:06.644 -- Peer Info:
IV_GUI_VER=OC30Android
IV_VER=3.2
IV_PLAT=android
IV_NCP=2
IV_TCPNL=1
IV_PROTO=2
IV_LZO=1
IV_AUTO_SESS=1
11:20:06.935 -- VERIFY OK : depth=1
cert. version : 3
serial number : DA:5A:7A:62:9F:12:04:BF
issuer name : CN=MY_VPN_NAME
subject name : CN=MY_VPN_NAME
issued on : 2018-08-14 19:33:00
expires on : 2028-08-11 19:33:00
signed using : RSA with SHA-256
RSA key size : 2048 bits
basic constraints : CA=true
key usage : Key Cert Sign, CRL Sign
11:20:06.941 -- VERIFY OK : depth=0
cert. version : 3
serial number : C0:91:35:E3:02:F0:C8:75:D6:FE:CD:57:A3:29:31:5D
issuer name : CN=MY_VPN_NAME
subject name : CN=server
issued on : 2018-08-14 19:35:19
expires on : 2028-08-11 19:35:19
signed using : RSA with SHA-256
RSA key size : 2048 bits
basic constraints : CA=false
subject alt name : server
key usage : Digital Signature, Key Encipherment
ext key usage : TLS Web Server Authentication
11:20:06.947 -- VERIFY FAIL -- bad ns-cert-type in leaf certificate
11:20:06.950 -- Transport Error: mbed TLS: SSL read error : X509 - Certificate verification failed, e.g. CRL, CA or signature check failed
11:20:06.952 -- EVENT: CERT_VERIFY_FAIL info='mbed TLS: SSL read error : X509 - Certificate verification failed, e.g. CRL, CA or signature check failed'
11:20:06.962 -- EVENT: DISCONNECTED
11:20:06.970 -- EVENT: CORE_THREAD_INACTIVE
11:20:06.972 -- Tunnel bytes per CPU second: 0
11:20:06.973 -- ----- OpenVPN Stop -----
Thanks a lot for the help