QSslSocket::connectToHostEncrypted:TLS 初始化失败

问题描述 投票:0回答:1

我在QT项目中使用了QNetworkRequest和QNetworkReply。网上查了一下,明白可能是openssl配置不正确,但是我用sslSocket->sslLibraryBuildVersionString()sslSocket->sslLibraryVersionString()得到两串空字符,所以不知道怎么配置它。我还下载了openssl各个版本的exe安装包。安装后没有任何效果。我使用的是qt6.4.3版本。这有问题吗?

c++
1个回答
0
投票

添加一些错误信息:

The backend "cert-only" does not support QSslKey
Active TLS backend does not support key creation
The backend "cert-only" does not support QSslKey
Active TLS backend does not support key creation
The backend "cert-only" does not support QSslSocket
The backend named "cert-only" does not support TLS
QSslSocket::connectToHostEncrypted: TLS initialization failed
© www.soinside.com 2019 - 2024. All rights reserved.