I know this thread is from 2022, but just setup OpenVPN on AlmaLinux 9 per
https://orcacore.com/install-openvpn-almalinux-9/#manage-openvpn-server
And when I try to connect from Windows 11 using OpenVPN 2.6.9 from
https://openvpn.net/community-downloads/
I'm receiving the same error as OP and below.
Checked the How-To, and didn't see these errors.
All the files are in the same directory as the .ovpn file, and even tried putting the path with / and \, and still received the same error when trying to connect.
[olog]
2024-03-10 22:38:02 WARNING: Compression for receiving enabled. Compression has been used in the past to break encryption. Sent packets are not compressed unless "allow-compression yes" is also set.
2024-03-10 22:38:02 DEPRECATED OPTION: --cipher set to 'AES-256-CBC' but missing in --data-ciphers (AES-256-GCM:AES-128-GCM:CHACHA20-POLY1305). OpenVPN ignores --cipher for cipher negotiations.
2024-03-10 22:38:02 Note: '--allow-compression' is not set to 'no', disabling data channel offload.
Options error: --ca fails with 'ca.crt': The system cannot find the file specified. (errno=2)
Options error: --cert fails with 'client.crt': The system cannot find the file specified. (errno=2)
2024-03-10 22:38:02 WARNING: cannot stat file 'client.key': The system cannot find the file specified. (errno=2)
Options error: --key fails with 'client.key': The system cannot find the file specified. (errno=2)
Options error: Please correct these errors.
Use --help for more information.
[/olog]
client
dev tun
proto udp
remote (server IPv4) 1194
ca ca.crt
cert client.crt
key client.key
cipher AES-256-CBC
auth SHA512
auth-nocache
tls-version-min 1.2
tls-cipher TLS-DHE-RSA-WITH-AES-256-GCM-SHA384:TLS-DHE-RSA-WITH-AES-256-CBC-SHA256:TLS-DHE-RSA-WITH-AES-128-GCM-SHA256:TLS-DHE-RSA-WITH-AES-128-CBC-SHA256
resolv-retry infinite
compress lz4
nobind
persist-key
persist-tun
mute-replay-warnings
verb 3
Thanks