Hi,
I follow the tutorial
/how-to-set-up-and-configure-an-openvpn-server-on-centos-7 to configure the server CentOS7 OpenVPN 2.4.7. All worked fine from server config.
Then, I tried to configure a client CentOS6 OpenVPN 2.4.7 (same ver), but when I run the command:
openvpn --config myclient.conf
In my case, I didn't use client.conf generic name, but a specific client, because it will be many different clients.
it arises the messages below, with this "WARNING: Your certificate is not yet valid!"
Where is the log files from server and from client to better discover what is the problem?
I think the problem is the way I created the client certificate. I use the Common Name = complete DNS name myclient.mydomain, and Name = myclient.
Wed May 8 19:10:44 2019 OpenVPN 2.4.7 x86_64-redhat-linux-gnu [Fedora EPEL patched] [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [PKCS11] [MH/PKTINFO] [AEAD] built on Feb 20 2019
Wed May 8 19:10:44 2019 library versions: OpenSSL 1.0.1e-fips 11 Feb 2013, LZO 2.03
Wed May 8 19:10:44 2019 WARNING: Your certificate is not yet valid!
Wed May 8 19:10:44 2019 Outgoing Control Channel Encryption: Cipher 'AES-256-CTR' initialized with 256 bit key
Wed May 8 19:10:44 2019 Outgoing Control Channel Encryption: Using 256 bit message hash 'SHA256' for HMAC authentication
Wed May 8 19:10:44 2019 Incoming Control Channel Encryption: Cipher 'AES-256-CTR' initialized with 256 bit key
Wed May 8 19:10:44 2019 Incoming Control Channel Encryption: Using 256 bit message hash 'SHA256' for HMAC authentication
Wed May 8 19:10:44 2019 TCP/UDP: Preserving recently used remote address: [AF_INET]177.17.148.60:1194
Wed May 8 19:10:44 2019 Socket Buffers: R=[124928->124928] S=[124928->124928]
Wed May 8 19:10:44 2019 UDP link local: (not bound)
Wed May 8 19:10:44 2019 UDP link remote: [AF_INET]MYSERVERVALIDIP:1194
Wed May 8 19:11:44 2019 TLS Error: TLS key negotiation failed to occur within 60 seconds (check your network connectivity)
Wed May 8 19:11:44 2019 TLS Error: TLS handshake failed
Wed May 8 19:11:44 2019 SIGUSR1[soft,tls-error] received, process restarting
Wed May 8 19:11:44 2019 Restart pause, 5 second(s)