<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ū)

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

  1. 獲取服務(wù)器證書(shū)文件

下載好壓縮包,找到Nginx文件夾中的證書(shū)。

  1. 安裝服務(wù)器證書(shū)

復制 server.key、server.crt 文件到 Nginx 安裝目錄下的 conf 目錄。
打開(kāi) Nginx 安裝目錄下 conf 目錄中的 nginx.conf 文件
找到
HTTPS server

server {

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

將其修改為
server {

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

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

注:server.crt 是服務(wù)器證書(shū) 中級證書(shū)的整合,即如下:

  1. -----BEGIN CERTIFICATE-----

郵件里的服務(wù)器證書(shū)代碼

  1. -----END CERTIFICATE-----
  2. -----BEGIN CERTIFICATE-----

中間證書(shū)代碼

  1. -----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>