一个人免费观看视频www中文,女人与公狍交酡女免费,久久99精品久久久久久hb无码,免费人成视频网站在线观看18,亚洲热妇无码av在线播放,好姑娘高清影视在线观看,久久aaaa片一区二区,aaaaa级少妇高潮大片

綠色資源網(wǎng):您身邊最放心的安全下載站! 最新軟件|熱門排行|軟件分類|軟件專題|廠商大全

綠色資源網(wǎng)

技術(shù)教程
您的位置:首頁服務(wù)器類Web服務(wù)器 → Centos6.3下Apache配置基于加密的認(rèn)證https加密證書訪問

Centos6.3下Apache配置基于加密的認(rèn)證https加密證書訪問

我要評論 2013/05/06 22:01:39 來源:綠色資源網(wǎng) 編輯:www.dq05.cn [ ] 評論:0 點(diǎn)擊:479次

這里簡單演示一下Apache下基于加密的認(rèn)證訪問----https加密方式訪問。

1.DNS解析解析情況:

[root@localhost html]# nslookup www.dq05.cn

Server:         192.168.2.115

Address:        192.168.2.115#53

Name:   www.dq05.cn

Address: 192.168.2.115

2.安裝Apache SSL支持模塊:# yum install -y mod_ssl (默認(rèn)yum安裝httpd是沒有安裝該模塊的,安裝后自動生產(chǎn)/etc/httpd/conf.d/ssl.conf文件)并生成證書。

[root@localhost certs]# pwd

/etc/pki/tls/certs

[root@localhost certs]# ls

ca-bundle.crt        index.html      localhost.crt    Makefile

ca-bundle.trust.crt  localhost1.crt  make-dummy-cert

[root@localhost certs]# openssl req -utf8 -new -key ../private/localhost.key -x509 -days 3650 -out abc_com.crt

You are about to be asked to enter information that will be incorporated

into your certificate request.

What you are about to enter is what is called a Distinguished Name or a DN.

There are quite a few fields but you can leave some blank

For some fields there will be a default value,

If you enter '.', the field will be left blank.

-----

Country Name (2 letter code) [XX]:CN

State or Province Name (full name) []:510510

Locality Name (eg, city) [Default City]:GZ

Organization Name (eg, company) [Default Company Ltd]:ABC.COM

Organizational Unit Name (eg, section) []:Mr.Zhang

Common Name (eg, your name or your server's hostname) []:www.dq05.cn

Email Address []:root@abc.com

[root@localhost certs]#

3.配置Apache,基本配置這里不多說了,下面是配置www.dq05.cn站點(diǎn)http訪問的情況。

[root@localhost html]# tail -n 8 /etc/httpd/conf/httpd.conf

NameVirtualhost 192.168.2.115:80

<VirtualHost www.dq05.cn:80>

    ServerAdmin webmaster@dummy-host.example.com

    DocumentRoot /var/www/html

    ServerName www.dq05.cn

    ErrorLog logs/dummy-host.example.com-error_log

    CustomLog logs/dummy-host.example.com-access_log common

</VirtualHost>

[root@localhost html]# tail /var/www/html/index.html                      

www.dq05.cn

[root@localhost html]#

4.配置Apache支持https訪問www.dq05.cn站點(diǎn),編輯 vim /etc/httpd/conf.d/ssl.conf 文件,制定www.dq05.cn站點(diǎn)https訪問時(shí)的相關(guān)信息。添加下面配置。

<VirtualHost www.dq05.cn:443>

DocumentRoot "/var/www/html/www.kuteatest.net"    #//為了顯示效果,這里的站點(diǎn)目錄不一樣,一般情況一個(gè)域名應(yīng)該指向同一目錄的。

ServerName www.dq05.cn:443

ErrorLog logs/ssl_error_log

TransferLog logs/ssl_access_log

LogLevel warn

SSLEngine on

SSLProtocol all -SSLv2

SSLCipherSuite ALL:!ADH:!EXPORT:!SSLv2:RC4+RSA:+HIGH:+MEDIUM:+LOW

SSLCertificateFile /etc/pki/tls/certs/abc_com.crt

SSLCertificateKeyFile /etc/pki/tls/private/localhost.key

<Files ~ "\.(cgi|shtml|phtml|php3?)$">

    SSLOptions +StdEnvVars

</Files>

<Directory "/var/www/cgi-bin">

    SSLOptions +StdEnvVars

</Directory>

SetEnvIf User-Agent ".*MSIE.*" \

         nokeepalive ssl-unclean-shutdown \

         downgrade-1.0 force-response-1.0

CustomLog logs/ssl_request_log \

          "%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"

</VirtualHost>

5.重啟Apache服務(wù),測試訪問。

測試http訪問的結(jié)果

測試https訪問的結(jié)果

查看證書信息和自建crt信息一致

https訪問的最終結(jié)果

關(guān)鍵詞:Centos,Apache

閱讀本文后您有什么感想? 已有 人給出評價(jià)!

  • 0 歡迎喜歡
  • 0 白癡
  • 4 拜托
  • 0 哇
  • 0 加油
  • 1 鄙視
主站蜘蛛池模板: 一二三四观看视频社区在线| 欧洲熟妇色xxxx欧美老妇多毛网站 | 亚洲无av在线中文字幕| xxxxx内射xxxx| 美女内射毛片在线看免费人动物 | 国产妇女馒头高清泬20p多毛| 啦啦啦高清视频在线观看免费| 日本丰满岳乱妇在线观看| 日本大香伊一区二区三区| 乱子伦视频在线看| 丰满少妇被猛烈进入在线播放| 日韩av一中美av一中文字慕| 吃奶还摸下面动态图gif| 精品国产一区二区三区香蕉 | 你好世界在线观看| 国产在线视频福利资源站| 老色鬼在线精品视频在线观看 | 污18禁污色黄网站免费| 免费免费啪视频观看视频| 久久久久亚洲av成人片乱码 | 欧美人妻少妇精品久久黑人| 白嫩白嫩bbbbbbbbb| 日本亚洲欧洲另类图片| caoporn国产精品免费视频| 内射少妇一区27p| 人人做人人爽人人爱| 日本妇人成熟免费中文字幕| 成全动漫在线观看免费高清| 狠狠色噜噜狠狠狠7777奇米| 一边做一边说国语对白| 大又大粗又爽又黄少妇毛片| 99久热re在线精品99 6热视频| 国产免费视频| 人妻大胸奶水2| 国产成年女人毛片80s网站| 久久久噜噜噜www成人网| 免费人成网站在线观看不卡| 国产激情视频在线观看的| japanese精品少妇| 最近的2019中文字幕国语hd| 最近的2019中文字幕国语hd|