Cannot connect using OpenVPN for Windows
Posted: Mon Jan 17, 2022 10:17 pm
I have an OpenVPN server running on my EdgeRouter and can connect to it using both Android and IOS OpenVPN clients without any problem. I cannot however connect to it using the Windows OpenVPN client on my Windows 10 computer. Note I'm using the same set of .ovpn and cert files on all three platforms: Android, IOS and Windows. For the Windows OpenVPN client, the OpenVPN server log shows there is an initial attempt to connect but nothing else gets through after that until a retry (again and again) by the client. Below is what shows in the Windows OpenVPN client log. This error repeats itself with each retry by the Windows OpenVPN client. I have also tried both versions 2.5.0 and 2.5.5 of the Windows OpenVPN Client and they both result in the same errors. Any helps will be appreciated.
022-01-17 16:48:04 OpenVPN 2.5.5 Windows-MSVC [SSL (OpenSSL)] [LZO] [LZ4] [PKCS11] [AEAD] built on Dec 15 2021
2022-01-17 16:48:04 Windows version 10.0 (Windows 10 or greater) 64bit
2022-01-17 16:48:04 library versions: OpenSSL 1.1.1l 24 Aug 2021, LZO 2.10
2022-01-17 16:48:04 Outgoing Control Channel Authentication: Using 256 bit message hash 'SHA256' for HMAC authentication
2022-01-17 16:48:04 Incoming Control Channel Authentication: Using 256 bit message hash 'SHA256' for HMAC authentication
2022-01-17 16:48:04 TCP/UDP: Preserving recently used remote address: [AF_INET]192.168.80.1:443
2022-01-17 16:48:04 Socket Buffers: R=[65536->65536] S=[65536->65536]
2022-01-17 16:48:04 UDP link local: (not bound)
2022-01-17 16:48:04 UDP link remote: [AF_INET]192.168.80.1:443
2022-01-17 16:48:04 TLS: Initial packet from [AF_INET]192.168.80.1:443, sid=1f7147dd d20d449a
2022-01-17 16:48:04 VERIFY OK: <!!! MY OPENVPN SERVER CERT DN IS SHOWING HERE - REMOVED BEFORE POSTING LOG FILE !!!>
2022-01-17 16:48:04 Certificate does not have key usage extension
2022-01-17 16:48:04 VERIFY KU ERROR
2022-01-17 16:48:04 OpenSSL: error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed
2022-01-17 16:48:04 TLS_ERROR: BIO read tls_read_plaintext error
2022-01-17 16:48:04 TLS Error: TLS object -> incoming plaintext read error
2022-01-17 16:48:04 TLS Error: TLS handshake failed
2022-01-17 16:48:04 SIGUSR1[soft,tls-error] received, process restarting
2022-01-17 16:48:04 Restart pause, 5 second(s)
022-01-17 16:48:04 OpenVPN 2.5.5 Windows-MSVC [SSL (OpenSSL)] [LZO] [LZ4] [PKCS11] [AEAD] built on Dec 15 2021
2022-01-17 16:48:04 Windows version 10.0 (Windows 10 or greater) 64bit
2022-01-17 16:48:04 library versions: OpenSSL 1.1.1l 24 Aug 2021, LZO 2.10
2022-01-17 16:48:04 Outgoing Control Channel Authentication: Using 256 bit message hash 'SHA256' for HMAC authentication
2022-01-17 16:48:04 Incoming Control Channel Authentication: Using 256 bit message hash 'SHA256' for HMAC authentication
2022-01-17 16:48:04 TCP/UDP: Preserving recently used remote address: [AF_INET]192.168.80.1:443
2022-01-17 16:48:04 Socket Buffers: R=[65536->65536] S=[65536->65536]
2022-01-17 16:48:04 UDP link local: (not bound)
2022-01-17 16:48:04 UDP link remote: [AF_INET]192.168.80.1:443
2022-01-17 16:48:04 TLS: Initial packet from [AF_INET]192.168.80.1:443, sid=1f7147dd d20d449a
2022-01-17 16:48:04 VERIFY OK: <!!! MY OPENVPN SERVER CERT DN IS SHOWING HERE - REMOVED BEFORE POSTING LOG FILE !!!>
2022-01-17 16:48:04 Certificate does not have key usage extension
2022-01-17 16:48:04 VERIFY KU ERROR
2022-01-17 16:48:04 OpenSSL: error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed
2022-01-17 16:48:04 TLS_ERROR: BIO read tls_read_plaintext error
2022-01-17 16:48:04 TLS Error: TLS object -> incoming plaintext read error
2022-01-17 16:48:04 TLS Error: TLS handshake failed
2022-01-17 16:48:04 SIGUSR1[soft,tls-error] received, process restarting
2022-01-17 16:48:04 Restart pause, 5 second(s)