Linux 源码安装 OpenSSL

版权声明:本文为博主原创文章,网络媒体转载请注明出处,否则属于侵权行为 https://blog.csdn.net/github_38336924/article/details/82691450

Linux 源码安装 OpenSSL

1、下载OpenSSL

wget https://www.openssl.org/source/openssl-1.1.1.tar.gz
  • 解压
tar -zxvf openssl-1.1.1

2、源码安装

  • 进入openssl-1.1.1目录
cd openssl-1.1.1
  • 设置 OpenSSL 安装路径,--prefix 参数为欲安装之目录,执行如下命令:
./config --prefix=/usr/local/openssl
  • 执行 ./config -t
./config -t
  • 执行make命令,编译OpenSSL
make
  • 执行make install命令,安装 OpenSSL
make install

3、查看信息

  • 执行如下命令,查看OpenSSL依赖关系
ldd /usr/local/openssl/bin/openssl

这里写图片描述

  • 查看OpenSSL绝对路径
which openssl
  • 查看版本信息
openssl version
如果出现: error while loading shared libraries: libcrypto.so.1.1: cannot open shared object file: No错误,请移驾 https://blog.csdn.net/github_38336924/article/details/82692075

猜你喜欢

转载自blog.csdn.net/github_38336924/article/details/82691450