当前位置: 首页 > news >正文

升级openssl

openssl版本一键升级(需要修改tar包名称和路径)

---
- name: Install OpenSSLhosts: openssltasks:- name: Copy OpenSSL tar.gz to /tmpcopy:src: /root/shl/soft/openssl-1.1.1v.tar.gzdest: /tmp
#        remote_src: yes  # 如果源文件在控制主机上- name: Extract OpenSSL tar.gzcommand: tar -zxvf /tmp/openssl-1.1.1v.tar.gzargs:chdir: /tmpbecome: yes- name: Configure OpenSSLcommand: ./config --prefix=/usr/local/opensslargs:chdir: /tmp/openssl-1.1.1v#become: yes- name: Build and make OpenSSLcommand: make args:chdir: /tmp/openssl-1.1.1v#become: yes- name: Build and make install OpenSSLcommand:  make installargs:chdir: /tmp/openssl-1.1.1v- name: Backup existing openssl binarycommand: mv /usr/bin/openssl /usr/bin/openssl.bak#become: yes- name: Create symlink to the new OpenSSLcommand: ln -s /usr/local/openssl/bin/openssl /usr/bin/openssl#become: yes- name: Verify OpenSSL versioncommand: openssl versionregister: openssl_versionbecome: yes- name: Display OpenSSL versiondebug:var: openssl_version.stdout_lines

如果出现 openssl: error while loading shared libraries: libssl.so.1.1: cannot open shared object file: No such file or directory ,缺少相关库依赖,检查库文件
解决办法:

ln -s /usr/local/openssl/lib64/libssl.so.3 /usr/lib64/libssl.so.3
ln -s /usr/local/openssl/lib64/libcrypto.so.3 /usr/lib64/libcrypto.so.3

查看版本

openssl version
http://www.lryc.cn/news/310907.html

相关文章:

  • 软考基础知识2
  • Python基本数据类型介绍
  • 边缘计算网关:连接物理世界与数字世界的桥梁-天拓四方
  • NTP网络校时服务器(GPS北斗卫星校时系统)应用场景
  • Intel 芯片 Mac 如何重新安装系统
  • 【uni-app】condition 启动模式配置,生产环境无效,仅开发期间生效
  • sql单表运用11.3
  • YOLOv5目标检测学习(1):yolo系列算法的基础概念
  • 【大数据】通过 docker-compose 快速部署 MinIO 保姆级教程
  • VMware 虚拟机安装windows 10操作系统
  • Mysql实战(2)之MySQL执行流程
  • ES6 | (二)ES6 新特性(下) | 尚硅谷Web前端ES6教程
  • 客户案例|用友NC财务系统上云
  • OceanPen Art AI绘画系统内容讲解
  • 类 Unix 系统的文件目录结构
  • 外部存储器接口(EMIF)
  • 华为认证HCIP报名条件有哪些?考试要求介绍
  • 【Python】变量的引用
  • nextjs13如何进行服务端渲染?
  • Redis-基础篇
  • 【好书推荐-第七期】《RTC程序设计:实时音视频权威指南》(音视频开发必看!)
  • 还在犹豫学不学?鸿蒙技术是否有前途的最强信号来了
  • webpack的plugin 插件教程
  • v72.关于指针操作的补充
  • 【学习心得】爬虫JS逆向通解思路
  • 如何使用Logstash搜集日志传输到es集群并使用kibana检测
  • AutoEncoder和 Denoising AutoEncoder学习笔记
  • 计算机系统基础
  • live555学习 - 环境准备
  • C++ 模拟OJ