[Solved] ns-cert-type: Cannot connect my phone to the server

Samples of working configurations.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Locked
deaconbishop
OpenVpn Newbie
Posts: 2
Joined: Fri Jan 08, 2016 2:31 pm

[Solved] ns-cert-type: Cannot connect my phone to the server

Post by deaconbishop » Fri Jan 08, 2016 2:33 pm

This has not worked before and my first try. I know I can see the port open on the server and I can telnet to it and the logs show that I hit it with that telnet session. I cannot get my android phone to connect to it. Here is the log.

2016-01-08 08:19:35 official build 0.6.46 running on samsung SM-G900P (MSM8974), Android 5.0 (LRX21T) API 21, ABI armeabi-v7a, (samsung/kltespr/kltespr:5.0/LRX21T/G900PVPU3BOG1:user/release-keys)
2016-01-08 08:19:35 Building configuration…
2016-01-08 08:19:38 started Socket Thread
2016-01-08 08:19:38 Network Status: CONNECTED LTE to MOBILE n.ispsn
2016-01-08 08:19:38 P:Initializing Google Breakpad!
2016-01-08 08:19:38 Options error: Unrecognized option or missing or extra parameter(s) in /data/data/de.blinkt.openvpn/cache/android.conf:34: ns-cert-type (2.4_master)
2016-01-08 08:19:38 Use --help for more information.
2016-01-08 08:19:38 Process exited with exit value 1

Am I missing the certificates? They are in the opvn file I am using for configuration.

User avatar
Traffic
OpenVPN Protagonist
Posts: 4066
Joined: Sat Aug 09, 2014 11:24 am

Re: Cannot connect my phone to the server

Post by Traffic » Sat Jan 09, 2016 2:13 pm

deaconbishop wrote:Options error: Unrecognized option or missing or extra parameter(s) in /data/data/de.blinkt.openvpn/cache/android.conf:34: ns-cert-type (
--ns-cert-type needs an argument .. normally server

See --ns-cert-type in The Manual v23x

deaconbishop
OpenVpn Newbie
Posts: 2
Joined: Fri Jan 08, 2016 2:31 pm

Re: Cannot connect my phone to the server

Post by deaconbishop » Sat Jan 09, 2016 3:28 pm

OMG What a dummy. Reviewing the config file there was a carriage return after the --ns-cert-type so server was on the next line. I guess it is as always watch for the semi colon. :o

User avatar
Traffic
OpenVPN Protagonist
Posts: 4066
Joined: Sat Aug 09, 2014 11:24 am

Re: [Solved] ns-cert-type: Cannot connect my phone to the se

Post by Traffic » Sat Jan 09, 2016 10:28 pm

We all make mistakes .. thanks for letting us know your solution 8-)

Locked