Getting issue in connecting OpenVpn file like: TLS Error: TLS key negotiation failed to occur within 60 seconds (check your network connectivity)

Getting issue in connecting OpenVpn file like: TLS Error: TLS key negotiation failed to occur within 60 seconds (check your network connectivity)

Please follow below points to fix this issue:

Connect your openvpn server and follow up the below steps:

cd /etc/openvpn/easy-rsa/

#Edit openssl.cnf

                vi openssl.cnf

#Increase the date as given below:

                default_crl_days= 3650

#Edit vars

        vi vars

#Add below line in vars:

                export KEY_ALTNAMES="something"

#Type .vars to propagate the changes like:

. vars

#Copy and past below command to create new crl.pem file:

openssl ca -gencrl -keyfile keys/ca.key -cert keys/ca.crt -out keys/crl.pem -config ./openssl.cnf

#Go to /etc/openvpn/easy-rsa/keys

cd /etc/openvpn/easy-rsa/keys

#Copy crl.pem and move it in crl.jail folder:

cp /etc/openvpn/easy-rsa/keys/crl.pem /etc/openvpn/easy-rsa/keys/crl.jail/