一、问题

在Qt中使用https,运行时报错:

qt.network.ssl: QSslSocket: cannot resolve SSLv2_client_method
二、原因分析

SSLv2由于某些漏洞导致的不安全原因, 在某些linux发行版里的openssl库禁用掉了SSLv2

三、解决办法

重新编译openssl

1、下载openssl
git clone  https://github.com/openssl/openssl.git
2、编译
./config enable-shared
make -j4
3、部署

将ssl和crypto库拷贝到Qt目录lib下:

cp libssl.so* libcrypto.so* ~/Qt5.6.3/5.6.3/gcc_64/lib/ -a
4、新的错误

重新运行时,报错
qt.network.ssl: QSslSocket: cannot call unresolved function *

qt.network.ssl: QSslSocket: cannot resolve CRYPTO_num_locks
qt.network.ssl: QSslSocket: cannot resolve CRYPTO_set_id_callback
qt.network.ssl: QSslSocket: cannot resolve CRYPTO_set_lock

【Qt】Qt中使用ssl时报错:qt.network.ssl: QSslSocket: cannot resolve SSLv2_client_method相关推荐

  1. 在做TLS/SSL时报错

    [在做TLS/SSL时报错] 在docker 做TLS/SSL加密时,发现报错 "rpc error: code = Unavailable desc = connection error: ...

  2. node汉字拼音转换需要用到pinyin包,使用pinyin中的分词时报错提示需要安装nodejieba依赖...

    1.使用pinyin中的分词时报错提示需要安装nodejieba依赖: 2.安装 npm install -g nodejieba 报错 解决方案如下:  1.安装  npm install -g n ...

  3. Python: PyCharm中导入matplotlib时报错:“Backend Qt5Agg is interactive backend”的解决方案

    Python: PyCharm中导入matplotlib时报错:"Backend Qt5Agg is interactive backend"的解决方案 在使用PyCharm时,在 ...

  4. ubuntu系统下IDEA中新建class时报错Unable to parse template “Class“的解决方法

    ubuntu系统下IDEA中新建class时报错Unable to parse template "Class"的解决方法 参考文章: (1)ubuntu系统下IDEA中新建cla ...

  5. vue+ts项目中import图片时报错Cannot find module ‘xxx‘ or its corresponding type declarations

    TS项目中import图片时报错Cannot find module 'xxx' or its corresponding type declarations 在vue+ts项目中使用import的形 ...

  6. 解决ubuntu中连接mysql时报错:Access denied for user ‘root‘@‘localhost‘

    在ubuntu安装好mysql后无脑的跟着别人的博客配置了远程访问的权限,然后在连接时报错: itcast@itcast-virtual-machine:/usr/share/mysql$ mysql ...

  7. autowired注入jar中的依赖_springboot项目中调用jar包中的类时报错 — 没有注入类

    使用场景:将一些公共的方法封装成了一个jar包,在其他项目中进行引用的时候报错 报错原因:bean没有注入 因为这两个类没有被@Service,@Repository等类注解,如果我们想用@Autow ...

  8. 在Spring中注册组件时报错:The fully qualified name of the bean's class, except if it serves only as a parent d

    问题:我在注册组件时报错The fully qualified name of the bean's class, except if it serves only as a parent defin ...

  9. Android Studio中虚拟机运行时报错的解决方法

    Android Studio中启动虚拟机时,在主界面的"Event Log"中可能会有报错信息,此时虚拟机仍然是可以运行的. 1 Failed to open /qemu.conf ...

最新文章

  1. css3鼠标果果变手型代码_css3 鼠标悬浮动画效果
  2. DAY97 - Rest Framework(二)- 序列化组件之Serializer和ModelSerializer
  3. TCP/ITX协议面试总结
  4. VC++下使用ADO编写数据库程序 – 操作大全
  5. 什么叫诚实_李现自爆平常最爱看小姐姐!IG按赞被抓包 网友赞:诚实
  6. BamlViewer修改
  7. Mysql数据备份与mysqldump增量备份
  8. 了解单片机解密的一些知识
  9. AccessibilityService辅助功能的研究及实现自动抢红包功能
  10. Delphi制作打印面签案例
  11. 苏大计算机考研专业课,苏州大学计算机考研初试经验分享
  12. Python视频制作 MoviePy框架视频处理模块
  13. 2020届高考冲刺提分技巧;圆锥曲线系统秒杀技巧
  14. word选择性粘贴没有HTML选项,Word选择性粘贴如何使用?Word选择性粘贴的快捷键是什么?...
  15. 设置Win7自动关机的两种方法
  16. 游戏 csp 201712-2
  17. mac u盘只读怎么修改_苹果电脑mac显示只读怎么办
  18. 钉钉直播教学中遇到的26个常见问题解决方法
  19. userdel、usermod命令详解
  20. jQuery实现BBS发贴操作

热门文章

  1. keras 的 example 文件 mnist_net2net.py 解析
  2. OpenCV(22)SIFT尺度不变特征变换(纯理论)
  3. 一、网页端文件流的传输
  4. android tombstone发生过程,Android Tombstone 分析
  5. linux c 屏幕触摸_交互式拼接屏应用互动触摸屏实现大屏幕拼接墙
  6. 在CentOS 6.3 64bit上安装ActiveMQ 5.15.9实录
  7. Mastering Algorithms with C中文版附带源码说明
  8. 关于部署osd过程中:Device is in use by a device-mapper mapping问题解决
  9. [源码和文档分享]基于java 的仿QQ聊天工具
  10. selenium的基础知识点