中文字幕第五页-中文字幕第页-中文字幕韩国-中文字幕最新-国产尤物二区三区在线观看-国产尤物福利视频一区二区

Linux的ssl證書安裝教程

2022-10-06    分類: 網(wǎng)站建設(shè)

SSL證書在不同的系統(tǒng)環(huán)境下安裝,其操作也是有差異的。系統(tǒng)可分為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 : 默認(rèn)安裝路徑 /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

[指定安裝路徑; 默認(rèn)是'/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等。去掉不必要的內(nèi)容可以減少生成庫的大小。 若要生成debug版本的庫和可執(zhí)行程序加-g或者-g3(openssl中有很多宏,需要調(diào)試學(xué)習(xí)最好加上-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.

     但是我最后沒有得到想要的結(jié)果,系統(tǒng)原來的openssl還是沒能卸載掉,我該怎么做那?我繼續(xù)搜索資料,哈,幸運的我找了,在一個國內(nèi)論壇上是這么說的

      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

      //最后要刷新系統(tǒng)的動態(tài)連接庫配置

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

      ldconfig -v

Linux的ssl證書安裝

好了,以上便是Linux的ssl證書安裝教程,如有不懂,可咨詢我們的在線客服。

名稱欄目:Linux的ssl證書安裝教程
標(biāo)題來源:http://m.2m8n56k.cn/news29/202479.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供建站公司面包屑導(dǎo)航網(wǎng)站營銷App開發(fā)用戶體驗ChatGPT

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時需注明來源: 創(chuàng)新互聯(lián)

搜索引擎優(yōu)化
主站蜘蛛池模板: 国产欧美精品三区 | 经典三级久久 | 正能量www正能量免费网站 | 91影视永久福利免费观看 | 国产国产人免费视频成69堂 | 91热久久免费频精品动漫99 | 国产人成精品综合欧美成人 | 午夜久久久久久久 | 中文字幕一级毛片视频 | 欧美1 | 免费播放特黄特色毛片 | 亚洲欧美激情视频 | 欧美黄色成人 | 香蕉国产人午夜视频在线观看 | 黄a免费| 一本色道久久88亚洲精品综合 | 久久久久国产成人精品亚洲午夜 | 91寡妇天天综合久久影院 | 成年美女黄网站色大 | 美女一级视频 | 一级黄色香蕉视频 | 久久草网站 | 国产成人精品一区 | 国产日本欧美在线观看 | 国产农村乱子伦精品视频 | 欧美 日韩 国产 成人 在线观看 | 免费乱淫视频 | 欧美高清视频手机在在线 | 国产九九视频在线观看 | 亚洲综合在线观看视频 | 午夜成年人网站 | 一区二区三区在线视频观看 | 亚洲国产高清人在线 | 国产普通话一二三道 | 国产91一区二区在线播放不卡 | 亚洲精品福利一区二区三区 | 成年女人在线观看片免费视频 | 欧美成本人视频 | 91香焦国产线观看看免费 | 亚洲人成在线影院 | 国产成人99久久亚洲综合精品 |