2017年7月10日月曜日

スタートアップスクリプト「Mastodon」の更新のお知らせ・2017/7/10 12:00以前にスクリプトを使用して作成されたインスタンス向けの作業のお願い

本日、スタートアップスクリプト「Mastodon」を更新致しました。

変更内容は以下の通りです。

  • 証明書自動更新コマンドのコマンドオプション修正

また、本日(2017/7/10)12:00以前にスタートアップスクリプトでMastodonインスタンスを作成された方は、さくらのクラウドのコンソールやSSHクライアントから、以下コマンドの実行をお願い致します。なお、証明書更新処理中に Webサービスの停止が数秒間発生致します。

rootユーザで実行

# 証明書の手動更新
/usr/local/certbot/certbot-auto renew --standalone --pre-hook 'systemctl stop nginx' --post-hook 'systemctl start nginx' --force-renew
=> 証明書を手動で更新する nginxの停止/起動が入る

# cronの設定変更
# echo "$((${RANDOM}%60)) $((${RANDOM}%24)) * * $((${RANDOM}%7)) root /usr/local/certbot/certbot-auto renew --standalone --preferred-challenges tls-sni-01 --pre-hook 'systemctl stop nginx' --post-hook 'systemctl start nginx'" > /etc/cron.d/certbot-auto

# 証明書の取得日/期限日の確認
# DOMAIN=example.com (example.comにはお客様ドメインを入力してください)
# openssl s_client -connect ${DOMAIN}:443 < /dev/null 2> /dev/null | openssl x509 -text | grep "Not "
            Not Before: Jul  4 13:10:00 2017 GMT
            Not After : Oct  2 13:10:00 2017 GMT


from さくらのクラウドニュース http://ift.tt/2uGMt57
via IFTTT

0 コメント:

コメントを投稿