Workaround for using SSL 3 in Qt 6.3
-
When running applications in Qt 6.3 under Ubuntu 22.04 I receive the following warnings:
[20220516 11:32:01 W] unknown:0 - Incompatible version of OpenSSL (built with OpenSSL 1.x, runtime version is >= 3.x)
[20220516 11:32:01 W] unknown:0 - The backend "cert-only" does not support QSslKey
[20220516 11:32:01 W] unknown:0 - Active TLS backend does not support key creationI understand that the Qt developers built Qt 6.3 with the old OpenSSL 1.x.
Because the next release of Qt 6.4 is planned for September, I wonder if there is a workaround to enable Qt 6.3.0 to use OpenSSL 3.x.I.e. Is it possible to build only this module and overwrite the libraries?
-
When running applications in Qt 6.3 under Ubuntu 22.04 I receive the following warnings:
[20220516 11:32:01 W] unknown:0 - Incompatible version of OpenSSL (built with OpenSSL 1.x, runtime version is >= 3.x)
[20220516 11:32:01 W] unknown:0 - The backend "cert-only" does not support QSslKey
[20220516 11:32:01 W] unknown:0 - Active TLS backend does not support key creationI understand that the Qt developers built Qt 6.3 with the old OpenSSL 1.x.
Because the next release of Qt 6.4 is planned for September, I wonder if there is a workaround to enable Qt 6.3.0 to use OpenSSL 3.x.I.e. Is it possible to build only this module and overwrite the libraries?
@Mark81 said in Workaround for using SSL 3 in Qt 6.3:
I wonder if there is a workaround to enable Qt 6.3.0 to use OpenSSL 3.x.
No, Qt6.3 does not support OpenSSL 3 - install OpenSSL 1.1
-
@Mark81 said in Workaround for using SSL 3 in Qt 6.3:
I wonder if there is a workaround to enable Qt 6.3.0 to use OpenSSL 3.x.
No, Qt6.3 does not support OpenSSL 3 - install OpenSSL 1.1
@Christian-Ehrlicher I did. But perhaps I did it wrong.
Because other modules didn't work anymore:GStreamer-WARNING **: 18:10:44.471: Failed to load plugin '/usr/lib/x86_64-linux-gnu/gstreamer-1.0/libgstlibav.so': /lib/x86_64-linux-gnu/libssl.so.3: version `OPENSSL_3.0.0' not found (required by /lib/x86_64-linux-gnu/librabbitmq.so.4) $ ldd libqsqlmysql.so ./libqsqlmysql.so: /lib/x86_64-linux-gnu/libssl.so.3: version `OPENSSL_3.0.0' not found (required by /lib/x86_64-linux-gnu/libmysqlclient.so.21) ...
Can I install both so each module uses what it prefers?
-
@Christian-Ehrlicher I did. But perhaps I did it wrong.
Because other modules didn't work anymore:GStreamer-WARNING **: 18:10:44.471: Failed to load plugin '/usr/lib/x86_64-linux-gnu/gstreamer-1.0/libgstlibav.so': /lib/x86_64-linux-gnu/libssl.so.3: version `OPENSSL_3.0.0' not found (required by /lib/x86_64-linux-gnu/librabbitmq.so.4) $ ldd libqsqlmysql.so ./libqsqlmysql.so: /lib/x86_64-linux-gnu/libssl.so.3: version `OPENSSL_3.0.0' not found (required by /lib/x86_64-linux-gnu/libmysqlclient.so.21) ...
Can I install both so each module uses what it prefers?
@Mark81 said in Workaround for using SSL 3 in Qt 6.3:
Can I install both so each module uses what it prefers?
You can, but it seems like you've overridden
libssl.so.3
with openssl 1.1 - why?
Install both openssl version with your distributions package manager! -
@Mark81 said in Workaround for using SSL 3 in Qt 6.3:
Can I install both so each module uses what it prefers?
You can, but it seems like you've overridden
libssl.so.3
with openssl 1.1 - why?
Install both openssl version with your distributions package manager!@Christian-Ehrlicher initially I overwrote the files because I followed the instructions in the link provided (in the linked thread).
I cannot use the distribution package manager (
apt
) because OpenSSL 1.x is not available under Ubuntu 22.04.
Hence, Qt 6 are NOT usable in 22.04 by default!!! This should required a HUGE warning in the online installer and on the website.Anyway, I'm trying to use OpenSSL from 21.10:
wget http://archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.1l-1ubuntu1_amd64.deb sudo dpkg -i libssl1.1_1.1.1l-1ubuntu1_amd64.deb wget http://archive.ubuntu.com/ubuntu/pool/main/o/openssl/openssl_1.1.1l-1ubuntu1.3_amd64.deb sudo dpkg -i openssl_1.1.1l-1ubuntu1.3_amd64.deb
I need to try it deeper, but it seems it did the trick.
-
@Christian-Ehrlicher initially I overwrote the files because I followed the instructions in the link provided (in the linked thread).
I cannot use the distribution package manager (
apt
) because OpenSSL 1.x is not available under Ubuntu 22.04.
Hence, Qt 6 are NOT usable in 22.04 by default!!! This should required a HUGE warning in the online installer and on the website.Anyway, I'm trying to use OpenSSL from 21.10:
wget http://archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.1l-1ubuntu1_amd64.deb sudo dpkg -i libssl1.1_1.1.1l-1ubuntu1_amd64.deb wget http://archive.ubuntu.com/ubuntu/pool/main/o/openssl/openssl_1.1.1l-1ubuntu1.3_amd64.deb sudo dpkg -i openssl_1.1.1l-1ubuntu1.3_amd64.deb
I need to try it deeper, but it seems it did the trick.
@Mark81 said in Workaround for using SSL 3 in Qt 6.3:
This should required a HUGE warning in the online installer and on the website.
Why / how should the Qt installer know which packages your specific distribution is using??
-
@Mark81 said in Workaround for using SSL 3 in Qt 6.3:
This should required a HUGE warning in the online installer and on the website.
Why / how should the Qt installer know which packages your specific distribution is using??
@Christian-Ehrlicher any installer checks and verify the requisites before install anything.
-