SSL/TLS 証明書を無料で取得

Let's Encrypt(https://letsencrypt.jp/)でサーバー証明書を取得した。

EPELを有効にする必要がある。

CentOS6:
yum install epel-release
wget https://dl.eff.org/certbot-auto
chmod a+x certbot-auto
./certbot-auto
 
CentOS7:
yum install epel-release
yum install certbot python-certbot-apache

後忘れずに、443ポートを開放すしておくこと。

SSL.confの修正 /etc/httpd/conf.d/ssl.conf

SSLCertificateFile /etc/letsencrypt/live/[サーバーのドメイン]/cert.pem
SSLCertificateKeyFile /etc/letsencrypt/live/[サーバーのドメイン]/privkey.pem
SSLCertificateChainFile /etc/letsencrypt/live/[サーバーのドメイン]/chain.pem

有効期間は3か月なので、切れる前に更新する必要があります。