当前位置:网站首页>QSslSocket::connectToHostEncrypted: TLS initialization failed
QSslSocket::connectToHostEncrypted: TLS initialization failed
2022-04-22 05:44:00 【东方忘忧】
这个问题是使用了https协议而缺少openssl中的libssl.so和libcrypto.so或者库版本跟qt程序支持的版本不兼容造成的。
qt5.12.4之后版本都是兼容openssl1.1.x的,在之前的版本都是支持openssl1.0.x的,所以把openssl1.1.x版本的libssl.so和libcrypto.so库文件放到qt5.12.4之前的版本编译的程序目录中时没有用的,应该放openssl1.0.x版本的libssl.so和libcrypto.so库文件才有效。
注意:如果qt编译的程序跨平台后,会依赖qt标准库,把libssl.so和libcrypto.so放在qt标准库目录,如果不放,系统会优先安排本地的libssl.so和libcrypto.so文件,一版本地这两个文件版本高于1.0.x。
版权声明
本文为[东方忘忧]所创,转载请带上原文链接,感谢
https://blog.csdn.net/weixin_43246170/article/details/122496580
边栏推荐
- MODBUS协议简记
- Part 72 leetcode exercise (V) 5 Longest Palindromic Substring
- Chapter 87 leetcode sword refers to offer dynamic programming (IV) maximum sum of continuous subarrays
- Interaction method I between STM32 single chip microcomputer and ld3320 voice module
- QT add PRI compile run: error: fatal error: no input files problem solving
- AD5724 bipolar ADC
- Chorme debugging tool
- IFIX question summary Q & A (personal record)
- I/O多路复用(select/poll/epoll)
- 汇编 makefile
猜你喜欢

AD5724 双极性ADC

第75篇 LeetCode题目练习(八) 8.字符串转整数

Geojson file and ShapeFile file single conversion gadget

Subsets and problems (backtracking & branch and bound)

PCA in scikit learn

STM32 study notes 4 - HC_ Commissioning record of SR04 ultrasonic ranging module

第72篇 LeetCode题目练习(五) 5.最长回文子串

Blue Bridge Cup embedded expansion board learning DHT11

QT信号与槽的特点和用法

QT中出现error: undefined reference to `Widget::SetTime()‘
随机推荐
Chorme debugging tool
Daily learning records - reading custom data sets
stm32 printf 重定向 虚拟示波器
deep learning object detection 精选
Blue Bridge Cup embedded expansion board learning nixie tube
50道SQL练习题及答案与详细分析
PCA in scikit learn
标准输入、标准输出、标准错误 重定向及管道
CMake及交叉工具编译链的安装使用
Characteristics and usage of QT signal and slot
Chapter 89 leetcode refers to offer dynamic programming (6) translating numbers into strings
第85篇 LeetCode剑指Offer动态规划(二)青蛙跳台阶问题
膨胀腐蚀以及其它形态学处理
QT信号与槽的特点和用法
opencv近期学习测试代码
tcpdump的使用方法
蓝桥杯嵌入式扩展板学习之ADC按键
蓝桥杯嵌入式扩展板学习之LIS302DL
I/O多路复用(select/poll/epoll)
第84篇 LeetCode剑指Offer动态规划(一)斐波那契数列