国产xxxx99真实实拍_久久不雅视频_高清韩国a级特黄毛片_嗯老师别我我受不了了小说

資訊專欄INFORMATION COLUMN

Centos下免費(fèi)開啟https服務(wù) - Nginx

neu / 1840人閱讀

摘要:超文本傳輸安全協(xié)議英語,縮寫,常稱為,或是一種透過計(jì)算器網(wǎng)上進(jìn)行安全通信的傳輸協(xié)議。超文本傳輸安全協(xié)議為什么要開啟安全性開啟免費(fèi)服務(wù)我們今天介紹的免費(fèi)簽名平臺(tái)是,安裝過程以為例,如果你使用了其他系統(tǒng)或其他服務(wù)類型可前往查看相應(yīng)部署方法。

HTTPS
超文本傳輸安全協(xié)議(英語:Hypertext Transfer Protocol Secure,縮寫:HTTPS,常稱為HTTP over TLS,HTTP over SSL或HTTP Secure)是一種透過計(jì)算器網(wǎng)上進(jìn)行安全通信的傳輸協(xié)議。HTTPS經(jīng)由HTTP進(jìn)行通信,但利用SSL/TLS來加密數(shù)據(jù)包。HTTPS開發(fā)的主要目的,是提供對(duì)網(wǎng)站服務(wù)器的身份認(rèn)證,保護(hù)交換數(shù)據(jù)的隱私與完整性。這個(gè)協(xié)議由網(wǎng)景公司(Netscape)在1994年首次提出,隨后擴(kuò)展到互聯(lián)網(wǎng)上。—— 超文本傳輸安全協(xié)議 from WIKI

為什么要開啟HTTPS? 1、SEO 2、安全性 開啟免費(fèi)HTTPS服務(wù)

我們今天介紹的免費(fèi)簽名平臺(tái)是Let"s Encrypt,安裝過程以CentOS 7 + Nginx為例,如果你使用了其他系統(tǒng)或其他服務(wù)類型可前往Certbot查看相應(yīng)部署方法。

安裝

提示:如果你在使用RHEL on EC2,你可以運(yùn)行以下代碼來開啟選項(xiàng)通道(optional channel):

$ yum -y install yum-utils
$ yum-config-manager --enable rhui-REGION-rhel-server-extras rhui-REGION-rhel-> server-optional

開啟選項(xiàng)通道后運(yùn)行下面代碼安裝Certbot:

$ sudo yum install python2-certbot-nginx

開始使用

給Certbot安裝Nginx插件:

$ sudo certbot --nginx

運(yùn)行這個(gè)命令會(huì)自動(dòng)為你獲取證書,并且Certbot會(huì)自動(dòng)配置你的Nginx以提供服務(wù)。如果你想要手動(dòng)修改Nginx配置可以使用certonly子命令:

$ sudo certbot --nginx certonly
自動(dòng)配置說明

執(zhí)行自動(dòng)配置命令后命令行輸出下文:

# sudo certbot --nginx
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator nginx, Installer nginx
Enter email address (used for urgent renewal and security notices) (Enter "c" to
cancel): [ email@example.com ]

提示你輸入接收緊急更新和安全提示的郵箱,

輸入郵箱鍵入回車進(jìn)入下一步(輸入"c"并回車放棄設(shè)置該郵箱)。

Starting new HTTPS connection (1): acme-v02.api.letsencrypt.org

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Please read the Terms of Service at
https://letsencrypt.org/documents/LE-SA-v1.2-November-15-2017.pdf. You must
agree in order to register with the ACME server at
https://acme-v02.api.letsencrypt.org/directory
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
(A)gree/(C)ancel: 

要求閱讀協(xié)議,輸入A同意該協(xié)議并繼續(xù)。

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Would you be willing to share your email address with the Electronic Frontier
Foundation, a founding partner of the Let"s Encrypt project and the non-profit
organization that develops Certbot? We"d like to send you email about our work
encrypting the web, EFF news, campaigns, and ways to support digital freedom.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
(Y)es/(N)o: 

詢問郵箱是否接受廣告,輸入N拒絕并繼續(xù)。

No names were found in your configuration files. Please enter in your domain
name(s) (comma and/or space separated)  (Enter "c" to cancel): 

輸入你的域名(例如:example.me)并繼續(xù)。

Obtaining a new certificate
Performing the following challenges:
http-01 challenge for example.me
Waiting for verification...
Cleaning up challenges
Deploying Certificate to VirtualHost /etc/nginx/nginx.conf

Please choose whether or not to redirect HTTP traffic to HTTPS, removing HTTP access.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1: No redirect - Make no further changes to the webserver configuration.
2: Redirect - Make all requests redirect to secure HTTPS access. Choose this for
new sites, or if you"re confident your site works on HTTPS. You can undo this
change by editing your web server"s configuration.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Select the appropriate number [1-2] then [enter] (press "c" to cancel): 

選擇是否將http請(qǐng)求重定向至https,輸入1不改變當(dāng)前服務(wù)器配置(不重定向),輸入2將自動(dòng)配置所有http請(qǐng)求的重定向。

既然我們要開啟https服務(wù)就輸入2并繼續(xù)。

Redirecting all traffic on port 80 to ssl in /etc/nginx/nginx.conf

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Congratulations! You have successfully enabled https://example.me

You should test your configuration at:
https://www.ssllabs.com/ssltest/analyze.html?d=example.me
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

IMPORTANT NOTES:
 - Congratulations! Your certificate and chain have been saved at:
   /etc/letsencrypt/live/example.me/fullchain.pem
   Your key file has been saved at:
   /etc/letsencrypt/live/example.me/privkey.pem
   Your cert will expire on 2019-02-12. To obtain a new or tweaked
   version of this certificate in the future, simply run certbot again
   with the "certonly" option. To non-interactively renew *all* of
   your certificates, run "certbot renew"
 - Your account credentials have been saved in your Certbot
   configuration directory at /etc/letsencrypt. You should make a
   secure backup of this folder now. This configuration directory will
   also contain certificates and private keys obtained by Certbot so
   making regular backups of this folder is ideal.
 - If you like Certbot, please consider supporting our work by:

   Donating to ISRG / Let"s Encrypt:   https://letsencrypt.org/donate
   Donating to EFF:                    https://eff.org/donate-le

出現(xiàn)以上提示就說明配置成功啦,趕快去訪問一下試試吧。

文章版權(quán)歸作者所有,未經(jīng)允許請(qǐng)勿轉(zhuǎn)載,若此文章存在違規(guī)行為,您可以聯(lián)系管理員刪除。

轉(zhuǎn)載請(qǐng)注明本文地址:http://m.specialneedsforspecialkids.com/yun/40182.html

相關(guān)文章

  • 2019 年如何在 CentOS 7 上安裝最新版 Nginx

    摘要:本文首發(fā)開發(fā)指南如何在上安裝讀作,是一個(gè)免費(fèi)的開源的高性能的和反向代理服務(wù),主要負(fù)責(zé)負(fù)載一些訪問量比較大的站點(diǎn)。本教程將會(huì)教您如何在的服務(wù)器上安裝和管理。倉庫中有的安裝包。期待下次與你相見本文首發(fā)開發(fā)指南如何在上安裝 showImg(https://segmentfault.com/img/bVbozn1?w=1000&h=530); 本文首發(fā):開發(fā)指南:如何在 CentOS 7 上安...

    jk_v1 評(píng)論0 收藏0
  • OpenLiteSpeed安裝與使用-開源輕量高性能的建站面板-免費(fèi)SSL,多PHP,LSCache

    LiteSpeed是一款可以替換Apache的企業(yè)級(jí)Web服務(wù)器,具有高性能,低資源占用,安全,易用的特點(diǎn)。它支持直接使用Apache的配置文件,可直接使用.htacess,無需額外配置,兼容Mod_Security。因此避免像Nginx那樣需要自己寫重寫規(guī)則的麻煩。而OpenLiteSpeed是LiteSpeed的開源免費(fèi)版本,除了保留了LiteSpeed輕量、高性能的特性外,它還加入了非常多的...

    番茄西紅柿 評(píng)論0 收藏2637
  • Swoft| Swoft官網(wǎng)全站 HTTP2 實(shí)踐

    摘要:官網(wǎng)全站實(shí)踐正式來襲也迎來自己的一個(gè)里程碑?dāng)?shù)正式突破官網(wǎng)作為項(xiàng)目組服務(wù)開發(fā)者們的重要渠道也迎來了自己的一次重大更新重構(gòu)升級(jí)到全站實(shí)現(xiàn)本篇先介紹官網(wǎng)全站實(shí)踐先來一張官網(wǎng)效果圖鎮(zhèn)樓靜態(tài)資源由托管開啟業(yè)務(wù)代碼交由執(zhí)行設(shè)置使用協(xié)議要實(shí)現(xiàn)非常簡(jiǎn)單 date: 2018-3-8 13:50:03title: Swoft| Swoft官網(wǎng)全站 HTTP2 實(shí)踐 Swoft1.0正式來襲, Swoft...

    stdying 評(píng)論0 收藏0

發(fā)表評(píng)論

0條評(píng)論

neu

|高級(jí)講師

TA的文章

閱讀更多
最新活動(dòng)
閱讀需要支付1元查看
<