TLS initialization failed
-
wrote on 19 Aug 2024, 14:01 last edited by
qDebug() << QSslSocket::supportsSsl() << QSslSocket::sslLibraryBuildVersionString() << QSslSocket::sslLibraryVersionString();
Output is:
false "OpenSSL 1.1.1g 21 Apr 2020" ""
I cant find the openssl 1.1.1g for download.
i downloaded opensslv3 but it didnt work for me.Win 11
QT 5.15.2 -
wrote on 20 Aug 2024, 10:58 last edited by
Doing this work for me.
I downloaded 1.1.1w here:
Fire Deamon
i copied all files from here:
...\openssl-1.1.1w.zip\openssl-1.1\x64\bin
to here:
...\Qt\5.15.2\msvc2019_64\bin -
Hi,
You don't need the g version, use the latest one of that OpenSSL series.
-
wrote on 19 Aug 2024, 20:48 last edited by
i already try latest version of openssl but i got same output
x.pro file
LIBS += -LC:\Qt\Tools\OpenSSL-Win64\lib\VC\x64\MTd -llibcrypto -llibssl INCLUDEPATH += C:\Qt\Tools\OpenSSL-Win64\include
when i try to include .h like #include <openssl/aes.h> it is not give error for header file but i am getting this error:
false "OpenSSL 1.1.1g 21 Apr 2020" "" qt.network.ssl: QSslSocket::connectToHostEncrypted: TLS initialization failed
-
There's no use trying to use OpenSSL v3 with Qt 5.15.2 as it was not available at this time. As I wrote, use the latest version of the series that is mentioned in the message.
Even better: use a more recent version of Qt which supports OpenSSL v3.
-
wrote on 20 Aug 2024, 09:47 last edited by
Thanks for your time.
I tried Opensslv3 (i installed in Qt Maintool) didnt work.
I tried openssl latest version from (OpenSSL) and i tried other version in this site but didnt work.
I cannot use qt latest version because of my company is using qt 5.15.2. -
wrote on 20 Aug 2024, 10:58 last edited by
Doing this work for me.
I downloaded 1.1.1w here:
Fire Deamon
i copied all files from here:
...\openssl-1.1.1w.zip\openssl-1.1\x64\bin
to here:
...\Qt\5.15.2\msvc2019_64\bin -
-
OpenSSL v3 is not compatible with 1.1 hence you cannot just dump it there and use it.
Please note that 1.1 has reached end of life so you should really consider updating your setup for security reasons.
-
wrote on 20 Aug 2024, 12:43 last edited by
Yes you are right. I am not getting error but
YouTubeAPI::YouTubeAPI(QObject *parent) : QObject(parent) { connect(&manager, &QNetworkAccessManager::finished, this, &YouTubeAPI::onResult); }
void YouTubeAPI::onResult(QNetworkReply *reply) { qDebug() << "replied"; }
the onResult function didnt called i guess, i can not see the replied message as a output.
in linux it is work with qt5.15.2, i can see the replied message as a output but i have another problem with linux that the web engine not work in there.
how can i solve properly this problem in windows and qt 5.15.2?
i am new in qt and i am getting so different errors :/
-
You should start by connecting the error related signals. That should provide more information about what is going on.
-
wrote on 20 Aug 2024, 19:17 last edited by
i didnt change anything but it is working right now. thanks anyway.
1/10