<button id="qvlbh"><button id="qvlbh"></button></button>
<xmp id="qvlbh"><xmp id="qvlbh"><xmp id="qvlbh"><address id="qvlbh"><output id="qvlbh"></output></address>
<xmp id="qvlbh"><legend id="qvlbh"></legend>
<xmp id="qvlbh"> <address id="qvlbh"><output id="qvlbh"></output></address>
<address id="qvlbh"><button id="qvlbh"></button></address>
<button id="qvlbh"><samp id="qvlbh"></samp></button>
<address id="qvlbh"><button id="qvlbh"></button></address><address id="qvlbh"></address>
<address id="qvlbh"><legend id="qvlbh"></legend></address>
<samp id="qvlbh"><xmp id="qvlbh"><legend id="qvlbh"></legend>
中國站
幫助中心 > 安全 > SSL安全證書(shū) > 證書(shū)安裝 > 如何在Nginx服務(wù)器上安裝SSL證書(shū)?

如何在Nginx服務(wù)器上安裝SSL證書(shū)?

  1. 獲取服務(wù)器證書(shū)文件,找到Nginx文件夾中的證書(shū)。

  2. 安裝服務(wù)器證書(shū),復制 server.key、server.crt 文件到 Nginx 安裝目錄下的 conf 目錄。
    打開(kāi) Nginx 安裝目錄下 conf 目錄中的 nginx.conf 文件,找到

    1. # HTTPS server
    2. #
    3. #server {
    4. # listen 443;
    5. # server_name localhost;
    6. # ssl on;
    7. # ssl_certificate cert.pem;
    8. # ssl_certificate_key cert.key;
    9. # ssl_session_timeout 5m;
    10. # ssl_protocols SSLv2 SSLv3 TLSv1;
    11. # ssl_ciphers ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP;
    12. # ssl_prefer_server_ciphers on;
    13. # location / {
    14. # root html;
    15. # index index.html index.htm;
    16. # }
    17. #}

    將其修改為

    1. server {
    2. listen 443;
    3. server_name localhost;
    4. ssl on;
    5. ssl_certificate server.crt;
    6. ssl_certificate_key server.key;
    7. ssl_session_timeout 5m;
    8. ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
    9. ssl_ciphers ECDH:AESGCM:HIGH:!RC4:!DH:!MD5:!aNULL:!eNULL;
    10. ssl_prefer_server_ciphers on;
    11. location / {
    12. root html;
    13. index index.html index.htm;
    14. }
    15. }

    保存退出,并重啟 Nginx。
    通過(guò) https 方式訪(fǎng)問(wèn)您的站點(diǎn),測試站點(diǎn)證書(shū)的安裝配置。

    注意:server.crt 是服務(wù)器證書(shū) 中級證書(shū)的整合,即如下:
    ——-BEGIN CERTIFICATE——-
    郵件里的服務(wù)器證書(shū)代碼
    ——-END CERTIFICATE——-
    ——-BEGIN CERTIFICATE——-
    中間證書(shū)代碼
    ——-END CERTIFICATE——-

国产精品香港三级|日韩精品无码免费专区网站|熟女一区二区三区|一本伊大人香蕉久久网|jzzijzzij亚洲乱熟无码
<button id="qvlbh"><button id="qvlbh"></button></button>
<xmp id="qvlbh"><xmp id="qvlbh"><xmp id="qvlbh"><address id="qvlbh"><output id="qvlbh"></output></address>
<xmp id="qvlbh"><legend id="qvlbh"></legend>
<xmp id="qvlbh"> <address id="qvlbh"><output id="qvlbh"></output></address>
<address id="qvlbh"><button id="qvlbh"></button></address>
<button id="qvlbh"><samp id="qvlbh"></samp></button>
<address id="qvlbh"><button id="qvlbh"></button></address><address id="qvlbh"></address>
<address id="qvlbh"><legend id="qvlbh"></legend></address>
<samp id="qvlbh"><xmp id="qvlbh"><legend id="qvlbh"></legend>