toggenation wrote
In my case I noticed the second part of the error message which lead to this forum topic but actually the first part of the error message was more relevant.
My remote OpenVPN server (Synology) was not up (I was trying to connect to the wrong IP). In this case the "There was an error attempting to connect to the selected server" is what I needed to fix.
Connection Failed
There was an error attempting to connect to the selected server.
Error message: Peer certificate verification failure
This previous post of mine was complete hokum.
I ended up confirming that the remote Synology NAS was up and everything was running and found, like others, that If I installed the OpenVPN Community Download from
http://openvpn.net/index.php/open-source/downloads.html and used it instead of OpenVPN Connect 3.3.2 (2475) then it would connect successfully.
Here is the error log text of the connection failing with OpenVPN Connect:
⏎[Dec 8, 2021, 16:36:47] Connecting to [rudolph.homeip.net]:1194 (1.1.2.2) via UDPv4
⏎[Dec 8, 2021, 16:36:47] EVENT: CONNECTING ⏎[Dec 8, 2021, 16:36:47] Tunnel Options:V4,dev-type tun,link-mtu 1601,tun-mtu 1500,proto UDPv4,keydir 1,cipher AES-256-CBC,auth SHA512,keysize 256,tls-auth,key-method 2,tls-client
⏎[Dec 8, 2021, 16:36:47] Creds: Username/Password
⏎[Dec 8, 2021, 16:36:47] Peer Info:
IV_VER=3.git::c2153df1
IV_PLAT=win
IV_NCP=2
IV_TCPNL=1
IV_PROTO=30
IV_CIPHERS=AES-256-GCM:AES-128-GCM:CHACHA20-POLY1305:AES-256-CBC
IV_GUI_VER=OCWindows_3.3.2-2475
IV_SSO=openurl,crtext
⏎[Dec 8, 2021, 16:36:47] Transport Error: OpenSSLContext::SSL::read_cleartext: BIO_read failed, cap=2576 status=-1: error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed
⏎[Dec 8, 2021, 16:36:47] EVENT: CERT_VERIFY_FAIL OpenSSLContext::SSL::read_cleartext: BIO_read failed, cap=2576 status=-1: error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed
⏎[Dec 8, 2021, 16:36:47] EVENT: DISCONNECTED
⏎