Apache SSL Enable

環境 CentOS 5.x i386

  1. 產生 key

  1. 產生 csr

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

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

  2. 安裝mod_ssl

  1. 取消需要輸入phase的機制

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

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

  1. 重新啟動 apache

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

This entry was posted in Apache, CentOS, SSL. Bookmark the permalink.