QSslSocket::supportsSsl return false and “qt.network.ssl: No functional TLS backend was found”
-
wrote on 18 Jul 2023, 08:54 last edited by
I use CLion and QT6.2.4/CMake3.24 to develop my project, the path of OpenSSL is correctly configured in cmakelist, but error shows.
my code is:
qDebug() << "OpenSSL supported:" << QSslSocket::supportsSsl();
qDebug() << QSslSocket::supportsSsl() << QSslSocket::sslLibraryBuildVersionString() <<" , "<< QSslSocket::sslLibraryVersionString();
QNetworkAccessManager *manager = new QNetworkAccessManager();
qDebug() << manager->supportedSchemes();
and the output is:
qt.network.ssl: No functional TLS backend was found
false "" , ""
qt.network.ssl: No functional TLS backend was found
QList("file", "qrc", "http", "data")
this is cmakelist.txt about openssl
cmake building has no error, the main cpp has bug.
-
Hi,
Is the path to the OpenSSL libraries part of the PATH environment variable when running your application ?
-
Hi,
Is the path to the OpenSSL libraries part of the PATH environment variable when running your application ?
-
Start your application with the QT_DEBUG_PLUGINS environment variable set to one to see exactly what happens with the plugin.
-
1/4