Let’s Encrypt の SSL を手動更新する [CentOS + Nginx 編]

CentOS + Nginx + Let’s Encrypt な環境下で SSL を手動更新する方法をご紹介します。

Let’s Encrypt

Let’s Encrypt の SSL 設定

前提として、本サイト Let's Encrypt で SSL を設定する [CentOS + Nginx 編] の記事の通りに SSL をインストールしているとします。

Let’s Encrypt 手動更新

Let’s Encrypt 手動更新する shell script は以下の通りです。

service nginx stop
/usr/local/certbot/certbot-auto renew --renew-hook "service nginx restart"

以上、Let’s Encrypt の SSL を手動更新した現場からお送りしました。