Closed kaperusov closed 1 year ago
This error happens in the mbedtls library. This is not related to OpenVPN 3. Please open a ticket for the mbed team to look into; this is not something we can do much with.
That said, unless there are specific reasons to use mbed TLS, do consider to use OpenSSL. Feature and performance wise, OpenSSL generally performs better. And OpenSSL is now a well funded and functional project, when compared against the time before the Heartbleed issue. We also generally have the impression mbed TLS development is moving slower forward than OpenSSL these days.
This error happens in the mbedtls library. This is not related to OpenVPN 3. Please open a ticket for the mbed team to look into; this is not something we can do much with.
That said, unless there are specific reasons to use mbed TLS, do consider to use OpenSSL. Feature and performance wise, OpenSSL generally performs better. And OpenSSL is now a well funded and functional project, when compared against the time before the Heartbleed issue. We also generally have the impression mbed TLS development is moving slower forward than OpenSSL these days.
OK, thanks.
I also built the OpenVPN 3 client wrapper (cli) with OpenSSL library. It has been built.
But when I ran:
sudo test/ovpncli/ovpncli myprofile.ovpn route-nopull
CONNECTING...
Thread starting...
Fri Aug 11 13:42:41.741 2023 OpenVPN core 3.8 linux x86_64 64-bit
Fri Aug 11 13:42:41.751 2023 Frame=512/2112/512 mssfix-ctrl=1250
connect error: PKey::parse_pem: error in private key:: error:1C800064:Provider routines::bad decrypt / error:11800074:PKCS12 routines::pkcs12 cipherfinal error / error:1C800064:Provider routines::bad decrypt / error:11800074:PKCS12 routines::pkcs12 cipherfinal error
Thread finished
STATS:
:-(
What am I doing wrong? Is it also mbedtls library? Or should I open a new issue?
No that is probably either broken key or outdated encryption on your that requires enabling the legacy algorithms
@kaperusov hi, I met same error, but how to build with openssl?
I tried to build dependencies run commands from README:
and build failed:
Then, I ran
~/O3/deps/mbedtls-2.28.2/tests/test_suite_x509parse
for details and wrote output to a log file: