Category Archives: SSL

Nginx SSL Enable

環境: Ubuntu 14.04 x64 產生key

2.產生 csr

cat csr,貼至申請處

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

移除需要輸入 phase 的機制

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

重新啟動 nginx

Posted in Nginx, SSL, Ubuntu | Leave a comment

Apache SSL Enable

環境 CentOS 5.x i386 產生 key

產生 csr

cat csr,將資料丟到憑證申請的網站輸入

以namecheap的comodo憑證為例,選擇伺服器為 apache + mod_ssl,會回傳兩個檔案至mail中 cowman_ip.ca-bundle cowman_ip.crt 安裝mod_ssl

取消需要輸入phase的機制

編輯 apache 設定檔,範例是在 /etc/httpd/conf.d/ssl.conf

將 http 轉至 https,修改 /etc/httpd/conf/httpd.conf

重新啟動 apache

!! 記得檢查iptables防火牆設定

Posted in Apache, CentOS, SSL | Leave a comment