
ショコラ
nginx のポートを一時的に変更してサーバー証明書を更新する手順
一時的に ポート80 を ポート81 に変更してサーバー証明書を更新します。

もっさん先輩
cd /etc/nginx/conf.d
sed -i 's/listen 80;/listen 81;/' *conf
nginx -t
service nginx reload
renew の対象は「/etc/letsencrypt/renewal」のフォルダーある.confの設定ファイルみたい。
certbot renew --dry-run
certbot renew
sed -i 's/listen 81;/listen 80;/' *conf
nginx -t
service nginx reload
因みにサーバー証明書を作るコマンド
certbot certonly -d answorz.com -m mossan@answorz.com
以上