'Error creating SSL context' when running from inside Qt Creator on Ubuntu 18.04
-
I'm getting the following error when trying to download an https page when running from Qt Creator on Ubuntu 18.04:
Error creating SSL context (error:140A90C4:SSL routines:func(169):reason(196))
The same code runs fine when deployed with the ssl libs included and so on.
How can I fix it for my debug builds?
-
Hi,
You don't give enough informations.
What version of Qt are you using ?
What version of OpenSSL are you using ?
How did you install Qt ? -
Pre-build version of Qt are using OpenSSL1.0.X.
Since 5.10 there's a backend for the 1.1 series but it's not enabled by default because the oldest versions of Linux supported don't have OpenSSL 1.1.X.
Also OpenSSL 1.1.X broke both API and ABI compatibly with the 1.0.X series.
-
For that you have to build Qt.
-
@Vadi2 said in 'Error creating SSL context' when running from inside Qt Creator:
Qt had half a year to prepare for this so it's disappointing it has come down to this. :(
Why don't you blame OpenSSL for breaking source and binary compatibility?!
-
To prepare for what ? Switch over to OpenSSL 1.1 ? The code is there and ready to use. However you can't expect the Qt Project to force such a backward incompatible change.
Your other solution is to install the OpenSSL 1.0.X package in parallel on your system.