1. 申請證書
生成私鑰
openssl genrsa -out server.key 2048
生成request文件
openssl req -new -key server.key -out server.csr
使用request申請證書
2. 安裝mod_ssl模塊
yum install mod_ssl
3. 修改/etc/httpd/conf.d/ssl.conf文件
指定對應的證書、私鑰、證書鏈。
4. 修改Jira配置文件
/opt/Atlassian/jira/conf/server.xml
啟用Apache or Nginx over HTTPS的connector並且修改ProxyName,注釋其他的connector。
**5. 修改Confluence配置文件 **
/opt/Atlassian/confluence/conf/server.xml
啟用Apache or Nginx over HTTPS的connector並且修改ProxyName,注釋其他的connector
6. Rewrite URL
打開/etc/httpd/conf/http.conf
添加以下內容
# Rewrite URL
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
7. 修改Jira/Confluence Base URL