Forum archive
turnkey openvpn --ns-cert-type is deprecated
Hi
After months working fine turnkey failed.
I have done many things but i dont know how to start this increidble ovpn.
I have attached a txt with the errors.
hu Jan 31 20:52:50 2019 WARNING: --ns-cert-type is DEPRECATED. Use --remote-cert-tls instead.
Thu Jan 31 20:52:50 2019 Outgoing Control Channel Authentication: Using 160 bit message hash 'SHA1' for HMAC authentication
Thu Jan 31 20:52:50 2019 Incoming Control Channel Authentication: Using 160 bit message hash 'SHA1' for HMAC authentication
Thu Jan 31 20:52:50 2019 MANAGEMENT: >STATE:1548964370,RESOLVE,,,,,,
Thu Jan 31 20:52:50 2019 TCP/UDP: Preserving recently used remote address: [AF_INET]MY IP
Thu Jan 31 20:52:50 2019 Socket Buffers: R=[8192->8192] S=[8192->8192]
Thu Jan 31 20:52:50 2019 UDP link local: (not bound)
Thu Jan 31 20:52:50 2019 UDP link remote: [AF_INET]MY IP
Thu Jan 31 20:52:50 2019 MANAGEMENT: >STATE:1548964370,WAIT,,,,,,
Thu Jan 31 20:53:50 2019 TLS Error: TLS key negotiation failed to occur within 60 seconds (check your network connectivity)
Thu Jan 31 20:53:50 2019 TLS Error: TLS handshake failed
Thu Jan 31 20:53:50 2019 SIGUSR1[soft,tls-error] received, process restarting
Thu Jan 31 20:53:50 2019 MANAGEMENT: >STATE:1548964430,RECONNECTING,tls-error,,,,,
Thu Jan 31 20:53:50 2019 Restart pause, 5 second(s)
Help please :)
Did you change the value of
default_crl_daysin/etc/openvpn/easy-rsa/openssl.cnfI'm not sure, but perhaps the OpenVPN service requires a restart to use the new certificate which you have generated? Although I'm still only guessing that your issue is related to the other one I linked to. Noting that it's only been working for a month does certainly make that seem more likely though.
Unfortunately, I don't currently have an OpenVPN server running so I can't immediately double-check the command you'll need to restart the OpenVPN service. But I would imagine that the service is named "openvpn", or perhaps "openvpn-something". One way you could go is try using tab-complete to guess the name, i.e. something like this:
To see what options there are.
An alternate command that you can use on newer TurnKey servers (v14.0+) is systemctl. The format is slightly different, but it does pretty much the same thing:
Alternatively, just restarting your server will definitely restart all processes/services.
Also you note that you've tried regenerating a user config (.opvn file). Have you tried using that new config (after regenerating the CRL and restarting OpenVPN)? Perhaps that is also required? Sorry that I can't give you more specific and definite answers...