openssl安装

一、openssl简介

官网:https://www.openssl.org/source/

  openssl是一个功能丰富的开源安全工具箱。它提供的主要功能有:SSL协议实现(包括SSLv2、SSLv3和TLSv1)、大量软算法(对称、非对称、摘要)、大数运算、非对称算法密钥生成、ASN.1编解码库、证书请求编解码、数字证书编解码、CRL编解码、OCSP协议、数字证书验证、PKCS7标准实现和PKCS12个人数字证书格式实现功能。

  openssl采用C语言作为开发语言, 这使得它具有优秀的跨平台性能。

二、命令安装

sudo apt-get install openssl
sudo apt-get install libssl-dev
sudo apt-get install libssl1.1

 

三、debug版本安装

git clone https://github.com/openssl/openssl.git

# 切换版本 OpenSSL_1_1_1g, 可根据需求选择
git checkout OpenSSL_1_1_1g

# 配置 ./config --help 可以查看说明
# -g3 用于调试,生成debug信息,-g也可以,g3包含更多debug特性
# --prefix 配置要安装的目录
./config  -g3 shared --prefix=/usr/local/openssl

# 编译
make

# 安装
sudo make install
echo "/home/username/openssl/bin" >> /etc/ld.so.conf      //加入动态链接库的路径
ldconfig -v

 

posted @ 2021-08-19 11:48  HelloAtom  阅读(1866)  评论(0编辑  收藏  举报