OpenVPN not embedding CA cert in .ovpn config

Hi,

On dev v157 when OpenVPN configs are being generated, the CA certificate is in the .p12 file however as it’s not put within <ca></ca> tags in the .ovpn client config, using OpenVPN Connect app on macOS fails to connect with error:

OpenSSLContext: CA not defined

However if I put the contents of cacert.pem within <ca></ca> tags in the .ovpn file it is working.

I recommend embedding the CA cert in the .ovpn file to fix this.

Thanks

Edit Same error happens on Windows

See my reply in

https://community.ipfire.org/t/openvpn-insecure-config-gives-500-error/5467/2

1 Like