error信息:qt.network.ssl: QSslSocket::connectToHostEncrypted: TLS initialization failed

 

解决方案:

1、获取ssl版本

QT 5.15 https 无法访问 TLS initialization failed

结果显示如下:

QT 5.15 https 无法访问 TLS initialization failed

说明不支持,依赖的版本是:1.1.1d

 

2、安装ssl

地址:https://slproweb.com/products/Win32OpenSSL.html

QT 5.15 https 无法访问 TLS initialization failed

 

没有1.1.1d版本,选择1.1.1g,下载,安装

安装后在QT项目的.pro文件中加入:

INCLUDEPATH += C:/OpenSSL-Win32/include

QT 5.15 https 无法访问 TLS initialization failed

 

相关文章:

  • 2021-08-14
  • 2021-07-06
  • 2021-07-12
  • 2021-04-21
  • 2021-05-22
  • 2021-10-31
  • 2022-02-07
  • 2021-05-21
猜你喜欢
  • 2022-12-23
  • 2021-09-27
  • 2021-08-28
  • 2021-11-26
  • 2021-05-12
  • 2022-12-23
  • 2022-01-23
相关资源
相似解决方案