Nginx SSL Enable

環境: Ubuntu 14.04 x64

  1. 產生key

2.產生 csr

  1. cat csr,貼至申請處

  1. 這裡一樣以namecheap的comodo ssl為例,會收到下面四個檔案
    伺服器類型選nginx
    AddTrustExternalCARoot.crt
    COMODORSAAddTrustCA.crt
    COMODORSADomainValidationSecureServerCA.crt
    cowman_ip.crt

  2. 產生 ssl-bundle.crt

  1. 移除需要輸入 phase 的機制

  1. 修改 nginx 設定檔,位置在 /etc/nginx/sites-enabled/default,這裡把設定檔整併在server中

  1. 重新啟動 nginx

This entry was posted in Nginx, SSL, Ubuntu. Bookmark the permalink.