wiki:Let's encrypt設定方法(CentOS)

Version 1 (modified by admin, 7 years ago) ( diff )

--


yum install -y git openssl mod_ssl
git clone https://github.com/letsencrypt/letsencrypt


CentOS 7 の場合

yum install certbot certbot-apache
sudo firewall-cmd --add-port=443/tcp --zone=public
sudo firewall-cmd --add-port=443/tcp --zone=public --permanent

sudo certbot run --apache -d ドメイン1 -d ドメイン2

バーチャルドメインの1と2のサーバ証明書がssl.confに自動で追加される。

下記のコマンドでサーバ証明書の更新ができる。
2カ月に1回自動で実行させる。
sudo certbot renew

Note: See TracWiki for help on using the wiki.