'Error creating SSL context' when running from inside Qt Creator on Ubuntu 18.04
-
wrote on 16 May 2018, 17:05 last edited by Vadi2
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 ? -
wrote on 16 May 2018, 17:15 last edited by
All Qt versions are giving this error - 5.9, 5.10, 5.11.
OpenSSL version 1.1.0g-2ubuntu4.
I installed Qt from the online installer.
-
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.
-
wrote on 16 May 2018, 17:35 last edited by
How can I enable that backend for Qt to work right on the LTS release of the biggest Linux desktop distro?
-
For that you have to build Qt.
-
wrote on 16 May 2018, 17:40 last edited by
Qt had half a year to prepare for this so it's disappointing it has come down to this. :(
-
@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.
-
wrote on 16 May 2018, 17:51 last edited by
Installing OpenSSL 1.0.x did not solve the issue.
-
wrote on 16 May 2018, 18:12 last edited by
A viable workaround is to ditch the online installer altogether and use the qt creator and qt dev headers from Ubuntu.
3/11