OpenVPN suddenly does not connect
Suddenly the connections to one of my OpenVPNs servers are not working. The error that I was getting was something like:
TLS Error: TLS key negotiation failed to occur within 60 seconds (check your network connectivity)
The post that I found in openvpn.net FAQ was the following: https://openvpn.net/faq/tls-error-tls-key-negotiation-failed-to-occur-within-60-seconds-check-your-network-connectivity/
Strange, nothing was changed on the server, neither on firewalls, networking etc. Strange.
I logged in to the server and I opened the log: /var/log/openvpn.log
This revealed the following error:
Wed Nov 6 11:25:54 2019 184.108.40.206:61394 VERIFY ERROR: depth=0, error=CRL has expired: CN=vpn-client-01
So I went ran the following command:
and then copied the generate file over my existing crl file:
cd /etc/openvpn/ cp /root/pki/crl.pem .