SSL证书在不同的系统环境下安装,其操作也是有差异的。系统可分为Linux、Windows等,今天小编要和大家讲的是Linux的ssl证书安装教程,一起来看下。

Linux的ssl证书安装教程

Linux的ssl证书安装教程

先安装zlib,见linux下安装zlib

安装openssl Building a Web Server, for Linux

下载地址

Package(Linux source) : openssl-0.9.8c.tar.gz

解压文件

tar -zxvf openssl-0.9.8c.tar.gz

Our Configuration

Install to : 默认安装路径 /usr/local/ssl

Module type : dynamically and staticly loaded modules, *.so *.a

Build Instructions

Configure

.../openssl-0.9.8c]# ./config --prefix=/usr/local/ --openssldir=/usr/local/openssl -g3 shared zlib-dynamic enable-camellia

--prefix=/usr/local/ --openssldir=/usr/local/openssl

[指定安装路径; 默认是'/usr/local/ssl' -- which we will symlink]

shared

[in addition to the usual static libraries, create shared libraries]

zlib-dynamic

[like "zlib", but has OpenSSL load the zlib library dynamically when needed]

enable-camellia

[enables the symmetric cipher 'Camellia' (128-bit, 192-bit, 256-bit key versions), which is now available for royalty-free use]

运行./config --prefix=/usr/local/openssl (更 多选项用./config --help来查看),可用的选项有:no-mdc2、no-cast no-rc2、no-rc5、no-ripemd、 no-rc4 no-des 、no-md2、no-md4、no-idea 、no-aes、no-bf、no-err、no-dsa、no-dh、 no-ec、no-hw、no-asm、no-krb5、no-dso 、no-threads 、no-zlib、-DOPENSSL_NO_HASH_COMP、-DOPENSSL_NO_ERR、-DOPENSSL_NO_HW 、- DOPENSSL_NO_OCSP、-DOPENSSL_NO_SHA256和-DOPENSSL_NO_SHA512等。去掉不必要的内容可以减少生成库的大小。 若要生成debug版本的库和可执行程序加-g或者-g3(openssl中有很多宏,需要调试学习最好加上-g3)。

display guess on system made by './config'...

.../openssl-0.9.8c]# ./config -t

正式安装,Build and Install

.../openssl-0.9.8c]# make depend

[step required since extra cipher was enabled]      (时间很长)

.../openssl-0.9.8c]# make                     (时间很长,慢慢等待)

.../openssl-0.9.8c]# make test

.../openssl-0.9.8c]# make install

*测试是否安装成功,#openssl version 是否是新安装的版本

Symlink

Form symlink from '/usr/local/ssl-0.9.8c' to '/usr/local/ssl'

...]# cd /usr/local

/usr/local]# ln -s ssl-0.9.8c ssl

Update the Run-time Linker

ld.so.cache will need to be updated with the location of the new OpenSSL shared libs: libcrypto.so.0.9.8 and libssl.so.0.9.8

Sometimes it is sufficient to just symlink or copy these two files to /lib, but we recommend you follow these instructions instead.

Edit /etc/ld.so.conf, add to paths...

/usr/local/ssl/lib

Update the run-time linker...

...]# ldconfig

Update the PATH

Edit /root/.bash_profile, add to PATH variable...

/usr/local/ssl/bin

Re-login.

[sanity check] OpenSSL

Verify that binary 'openssl' is linking against the correct ssl libraries...

...]# ldd /usr/local/openssl/bin/openssl

libssl.so.0.9.8 => /usr/local/ssl-0.9.8c/lib/libssl.so.0.9.8 ...

libcrypto.so.0.9.8 => /usr/local/ssl-0.9.8c/lib/libcrypto.so.0.9.8 ...

...]# which openssl

/usr/local/ssl/bin/openssl

...]# openssl version

OpenSSL 0.9.8c 05 Sep 2006

If another path, or an older version is shown, your system contains a previously installed OpenSSL that is first [relative to the newer openssl] in the path.

Repeate the steps in section 'Update the PATH', except place the specified location at the start of the PATH variable.

Note that the older openssl, on most systems, is located under /usr/bin

The location of 'openssl' can be found with...

...]# which openssl

...]# openssl version

should display openssl 0.9.7d 17 mar 2004

if an older version is shown, your system contains a previously installed openssl.

repeate the steps in update the path, except place the specified location at the start of the path variable.

[the older openssl, on most systems, is located under /usr/bin]

[the command 'which openssl' should display the path of the openssl that your system is using]

/usr/local/ssl/bin]# ./openssl version should display the correct version.

但是我最后没有得到想要的结果,系统原来的openssl还是没能卸载掉,我该怎么做那?我继续搜索资料,哈,幸运的我找了,在一个国内论坛上是这么说的

cd /usr/local/ssl/lib

ln -s libcrypto.so.0.9.7 libcrypto.so.2

ln -s libssl.so.0.9.7 libssl.so.2

//最后要刷新系统的动态连接库配置

echo /usr/local/ssl/lib >> /etc/ld.so.conf

ldconfig -v

本文转载于:https://www.it163.com/support/975.html

linux ssl证书卸载,Linux的ssl证书安装教程相关推荐

  1. linux下mplayer卸载,Linux下播放器之Mplayer安装心得

    安装完Fedora,我就想装个听歌软件,毕竟工作之余,听听歌是个很不错的放松方式. 网上一堆Linux牛们写的各种Linux下的听歌软件安装教程,在这里我代表我们这些菜菜们对这些牛们致以最崇高的敬意. ...

  2. https免费证书(终身)申请和安装教程

    目前来说,网站安装https是大势所趋,几乎每一个网站在建站之初,就会安装好https. 一.https是什么 "https(全称:Hyper Text Transfer Protocol ...

  3. 安全狗linux 安装教程,linux网站安全狗(apache版)安装教程

    以32位安装包为例子,64位安装包只要将对应的32改成64即可. 步骤一: 到http://safedog.cn下载软件安装包(.tar.gz格式) safedogwz_linux32.tar.gz ...

  4. 杰奇1.7用php53,linux下的杰奇1.7手机站安装教程

    今天给大家做个linux下的杰奇手机站安装教程 手机版界面预览 1.把下载好的wap模板 安装在杰奇目录下 或者其他目录 但是一定要在一个文件夹下 比如我的是/www/daai99.com/目录 你也 ...

  5. 西软服务器linux,FOXHIS前台西软服务器端和客户端安装教程.pdf

    FOXHIS前台西软服务器端和客户端安装教程 西软服务器端和客户端安装教程 前言:网上有很多关于西软 FOXHIS PMS 的安装教程,但大多没有详细描述并且内容非常肤浅粗燥,本特意把 自己的安装过程 ...

  6. linux ssl证书卸载,linux下nginx怎么卸载ssl证书

    常见的情况下,Linux下nginx一般的ssl配置文件是这样的: server { listen 443; server_name example.com; root /apps/www; inde ...

  7. 专业卸载工具Uninstall Tool软件安装教程

    Uninstall Tool是一款小巧强大的专业卸载工具.它比Windows自带的"添加/删除程序"功能快3倍! 它可移除系统自带程序功能所不能删除的程序,使用强制删除可卸载注册表 ...

  8. linux的rpm卸载,linux rpm卸载参数

    linux rpm卸载参数 本站整理   发布时间:2009-03-10 15:38:48   作者:jb51.net   我要评论 rpm卸载参数--test : 卸载测试  --nodeps : ...

  9. linux下 tftp卸载,linux下tftp使用方法

    ,文章-->嵌入式学习入门全面的讲述学习嵌入式linux中的每个步骤 TFTP是用来下载远程文件的最简单网络协议,它其于UDP协议而实现. 嵌入式linux的tftp开发环境包括两个方面: 一是 ...

最新文章

  1. 3.Git的基本操作
  2. 如果做不了合格的工程师,那就做个艺术家吧
  3. REST API 的安全基础
  4. hadoop集群硬盘损坏_Hadoop集群(万台规模)的磁盘故障自动处理
  5. Docker进阶-资源管理Swarm+Portainer
  6. 4.python合并excel多个sheet
  7. 常见的网络工程师面试问题
  8. Objective-C 学习记录6--dictionary
  9. 【渝粤教育】国家开放大学2018年春季 0149-21T现代汉语 参考试题
  10. [渝粤教育] 中国地质大学 嵌入式操作系统 复习题 (2)
  11. python 运行时 变量_python运行过程,变量,符号
  12. 机器学习课程笔记【十二】- 主成分分析
  13. 如何在线生成自己的短网址,可自定义域名 可统计点击数
  14. 翻译:使用 AWS Deep Racer 的日志分析工具
  15. 【Transformers】第 1 章:从Bag-of-Words到Transformer
  16. 黑苹果开启硬件加速(Clover)
  17. 64位系统装32位计算机,64位电脑装32位系统,教您64位电脑怎么装32位系统
  18. 从 Git 到区块链
  19. 剧集分销模式不再吃香
  20. python中dice常见问题_【Pytorch】 Dice系数与Dice Loss损失函数实现

热门文章

  1. 群晖6.XVideo Station不支持视频格式的解决方案
  2. 代码签名证书如何申请?
  3. 计算机算法讲解的ppt,智能计算几种经典算法解析.ppt
  4. 三星正整合Bada与Tizen系统
  5. 过程控制系统与仪表 华南理工大学期末重点 王再英(第二版) 长篇思维导图
  6. 使用计算机自适应测验大型测验,四年级数学成就计算机自适应测验(CAT)的初步编制...
  7. 金牧饲料配方软件的使用方法
  8. 中国传媒大学博士申请初试准备经验(文科+工科)(2022)
  9. 【数据分发服务DDS】软件定义汽车【一】- 概述
  10. PHP面试题(平时没事看看,也很涨知识,转载学习)