導航:首頁 > 操作系統 > linuxopenssl路徑

linuxopenssl路徑

發布時間:2022-08-10 13:59:39

1. 如何在linux下安裝ssl證書

Apache安裝景安SSL證書需要三個配置文件

1
1_root_bundle.crt、2_domainname.com.crt、3_ domainname.com.key。
註:這三個文件在文件夾for Apache.zip中,其中domainname.com是您的域名,2_ domainname.com.crt為公鑰,3_domainname.com.key為私鑰。(文件後綴名crt和cer的性質是一樣的)
END
安裝證書

下載並解壓openssl。(1)確認文件的存放目錄,例當前目錄為:/usr/local。

解壓openssl。如:tar zxvf openssl-0.9.8k.tar.gz

配置openssl。(1)進入openssl目錄。如:cd openssl-0.9.8k。

2)配置openssl。如:./config shared zlib make make test make install mv /usr/bin/openssl /usr/bin/openssl.save mv /usr/include/openssl /usr/include/openssl.save mv /usr/lib/libssl.so /libssl.so.save ln -s /usr/local/ssl/bin/openssl /usr/bin/openssl ln -s /usr/local/ssl/include/openssl /usr/include/openssl ln -sv /usr/local/ssl/lib/libssl.so.0.9.8 /usr/lib/libssl.so

安裝apache1.解壓文件:tar zxvf httpd-2.2.26.tar.gz2.進入目錄:cd httpd-2.2.263.配置安裝(/usr/local/ssl是openssl的安裝路徑):./configure --prefix=/usr/local/apache --enable-so --enable-ssl --with-ssl=/usr/local/ssl --enable-mods-shared=all
4.安裝:make && make install5.修改apache下的httpd.conf文件。(1)打開apache安裝目錄下conf目錄中的httpd.conf文件,找到 #LoadMole ssl_mole moles/mod_ssl.so #Include conf/extra/httpd-ssl.conf (2)刪除行首的配置語句注釋符號「#」,保存退出。6.修改apache下httpd-ssl文件。

如果本地測試,請做本地解析訪問:打開 系統盤:\Windows\System32\Drivers\etc\hosts文件,用文本編輯器修改,把證書綁定的域名解析到本地ip。

訪問https://+證書綁定的域名,測試效果如下:

2. linux中openssl安裝需要哪些軟體包

安裝環境:

操作系統:RedHat 12.0
OpenSSL Version:openssl-0.9.8l

Download

安裝包(Linux source) : openssl-0.9.8l.tar.gz(or the latest version of openssl)
下載地址:http://www.openssl.org/source/
在linux下解壓縮下載到的安裝包,命令如下.....
tar -xzf openssl-xxx.tar.gz
Our Configuration

Install to : /usr/local/ssl
Mole type : dynamically and staticly loaded moles, *.so *.a
Build Instructions

Configure

.../openssl-0.9.8l]# ./config --prefix=/usr/local/ssl-0.9.8l shared zlib-dynamic enable-camellia

--prefix=/usr/local/ssl-0.9.8l
[this is the installation location; default is '/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]
display guess on system made by './config'...

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

Build and Install

.../openssl-0.9.8l]# make depend
[step required since extra cipher was enabled]
.../openssl-0.9.8l]# make
.../openssl-0.9.8l]# make test
.../openssl-0.9.8l]# make install
Symlink

Form symlink from '/usr/local/ssl-0.9.8l' to '/usr/local/ssl'(...]代表「/usr/local/」)

...]# cd /usr/local
/usr/local]# ln -s ssl-0.9.8l 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 these two files to /lib, but we recommend you follow these instructions instead.

Edit /etc/ld.so.conf, add to paths...(修改效果如下圖1,當然也可以直接在/etc/ld.so.conf.d文件夾下再創建一個.conf文件,把/usr/local/ssl/lib拷貝到裡面,另外也可以在現有的.conf文件中添加這個路徑,反正ld.so.conf中包含了這個文件夾下的所有.conf文件)

3. linux 哪個是openssl安裝路徑

rpm -ql openssl
執行這個命令一目瞭然

4. Linux下編譯openssl後的.so文件被放在哪個目錄下邊了具體是哪個目錄啊

不進行make install安裝的話,就在你openssl的源碼目錄里,當然你config的時候需要指明shared,否則只有.a的,沒有.so的。
如果config的時候,指定了prefix,那麼就到你指定的目錄去找,下面應該有個lib目錄。
如果你的linux自帶openssl的話,系統的lib目錄下就有。libcrypto和libssl

5. linux9.0默認openssl安裝路徑在哪

一般在/usr/local/ssl
如果你是用rpm安裝的
可以用命令
rpm -ql openssl
來查看

6. linux下如何編譯安裝openssl模塊請高手詳細解答一下。。。。。。。。。。【】【】

1$ tar zxvf openssl-0.9.8k.tar.gz -C /opt/

2$ ./config --prefix=/usr/local/ssl-0.9.8lk shared zlib-dynamic enable-camellia --prefix=/usr/local/ssl-0.9.8lk

3$ ./config -t

4$ make depend

5$ make

6$ make test

7$ make install

/********************************************************************/
附加: 為了ssl

a:$ /usr/local/ssl-0.9.8lk/ssl

b:$ vi openssl.cnf
default_bits = 1024
改 default_bits = 8192//為了安全最好改為4096以上的數據

c:$ countryName = Country Name (2 letter code)
改 countryName = CN //只能使用2字母的國家代碼

d:$ countryName_default = AU
改countryName_default = Beijing
= Beijing //省份或直轄市名稱

/**********************************************************************/

8$ a)cd /usr/local
b)ln -s ssl-0.9.8lk ssl

9$ a)cd /etc/ld.so.conf.d
b)cp -r /usr/local/ssl-0.9.8lk/lib/ ./

10$ cd /etc
vi ld.so.conf
加入:/usr/local/ssl-0.9.8lk/lib

11$ cd /usr/local/ssl-0.9.8lk/lib
ldconfig

12$ vi /root/.bash_profile
另外一個終端:echo $PATH 把PATH顯示路徑加入到.bash_profile里
例如: PATH=$PATH:/usr/local/ssl-0.9.8lk/bin$HOME/bin

13$ source ~/.bash_profile

14$ cd /usr/local/

15$ ldd /usr/local/ssl-0.9.8lk/bin/openssl

16$ which openssl

17$ openssl version

7. linux openssl-1.0.1g.tar.gz在哪個文件夾

直接yum -y install openssl
下載的源碼包看你指定的是哪裡,或者在當前目錄找

8. linux下安裝openssl

你用的什麼版本的啊,把你的系統盤拿來,直接掛在上去裝那個RPM包就是了,那個不會報錯的

閱讀全文

與linuxopenssl路徑相關的資料

熱點內容
刪除文件的命令行 瀏覽:981
java編程軟體eclipse 瀏覽:198
番茄app怎麼完成簽約流程 瀏覽:725
ibm伺服器如何進u盤啟動 瀏覽:185
網路驅動重啟命令 瀏覽:446
入職聯想程序員 瀏覽:155
linux拷貝目錄下所有文件 瀏覽:46
androidwebview測試 瀏覽:234
java數組效率 瀏覽:496
java我的世界怎麼免費開伺服器 瀏覽:520
被刪了的app如何找回 瀏覽:358
冒險島飛花院伺服器什麼時間開的 瀏覽:864
old引擎視頻編譯 瀏覽:936
三小虎語音包文件夾 瀏覽:169
安卓區王者怎麼轉移蘋果多少錢 瀏覽:542
怎麼學好電腦的文字編程 瀏覽:400
武俠版pdf 瀏覽:776
捷安特騎行app如何添加好友 瀏覽:464
安卓手機怎麼關閉啟動項 瀏覽:567
群服的雲伺服器 瀏覽:566