#author("2024-04-18T08:45:21+09:00","default:kuji","kuji")
CONTENTS
#contents
----
Lastmodified &lastmod;
----
*letsencrypt ドメイン削除 [#qf15d139]

バーチャルドメインの一つ www.nosmoke.jp を削除したサーバで、証明書を更新しようとしたところ エラーがでて、

 # /root/bin/Certbot_Renew.sh
これは、以下の様なファイル
 certbot renew --pre-hook "/usr/local/etc/rc.d/apache24 stop" --post-hook "/usr/local/etc/rc.d/apache24 start"
すると、

 Saving debug log to /var/log/letsencrypt/letsencrypt.log
 
 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 Processing /usr/local/etc/letsencrypt/renewal/blackcube.smb.net.conf
 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 Hook 'pre-hook' ran with output:
  Stopping apache24.
  Waiting for PIDS: 89024.
 Renewing an existing certificate for blackcube.smb.net
 
 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 Processing /usr/local/etc/letsencrypt/renewal/www.niihama-med.or.jp.conf
 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 Renewing an existing certificate for www.niihama-med.or.jp
 
 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 Processing /usr/local/etc/letsencrypt/renewal/www.nosmoke.jp.conf
 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 Renewing an existing certificate for www.nosmoke.jp
 Failed to renew certificate www.nosmoke.jp with error: Could not bind TCP port 80 because it is already in use by another process on this system 
 (such as a web server). Please stop the program in question and then try again. 
 
 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 Processing /usr/local/etc/letsencrypt/renewal/www.smb.net.conf
 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 Renewing an existing certificate for www.smb.net
 Failed to renew certificate www.smb.net with error: Could not bind TCP port 80 because it is already in use by another process on this system (s uch as a web server). Please stop the program in question and then try again.
 
 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 The following renewals succeeded:
   /usr/local/etc/letsencrypt/live/blackcube.smb.net/fullchain.pem (success)
   /usr/local/etc/letsencrypt/live/www.niihama-med.or.jp/fullchain.pem (success)
 
 The following renewals failed:
   /usr/local/etc/letsencrypt/live/www.nosmoke.jp/fullchain.pem (failure)
   /usr/local/etc/letsencrypt/live/www.smb.net/fullchain.pem (failure)
 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 Hook 'post-hook' reported error code 1
 Hook 'post-hook' ran with error output:
  apache24 already running?  (pid=89773).
 2 renew failure(s), 0 parse failure(s)
 Ask for help or search for  solutions at https://community.letsencrypt.org. See the logfile /var/log/letsencrypt/letsencrypt.log or re-run Certbo t with -v for more details.

削除した www.nosmoke.jp 以後の証明書作成がエラーしている。

【参考URL】
https://sankame.github.io/blog/2018-04-30-letsencrypt_delete_domain/

上記を参考にさせて貰って、
/usr/local/etc/letsencrypt/live/www.nosmoke.jp を www.nosmoke.jp_old へ
/usr/local/etc/letsencrypt/renewal/www.nosmoke.jp.conf を www.nosmoke.jp.conf_old へリネームして

 # /root/bin/Certbot_Renew.sh
 Saving debug log to /var/log/letsencrypt/letsencrypt.log
 
 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 Processing /usr/local/etc/letsencrypt/renewal/blackcube.smb.net.conf
 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 Certificate not yet due for renewal
 
 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 Processing /usr/local/etc/letsencrypt/renewal/www.niihama-med.or.jp.conf
 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 Certificate not yet due for renewal
 
 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 Processing /usr/local/etc/letsencrypt/renewal/www.smb.net.conf
 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 Certificate not yet due for renewal
 
 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 The following certificates are not due for renewal yet:
   /usr/local/etc/letsencrypt/live/blackcube.smb.net/fullchain.pem expires on 2024-07-16 (skipped)
   /usr/local/etc/letsencrypt/live/www.niihama-med.or.jp/fullchain.pem expires on 2024-07-16 (skipped)
   /usr/local/etc/letsencrypt/live/www.smb.net/fullchain.pem expires on 2024-07-16 (skipped)
 No renewals were attempted. 
 No hooks were run.
 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

とエラー無く終了し、無事 www.smb.net の証明書も更新された。









----
Total access &counter(total);:本日 &counter(today);:昨日 &counter(yesterday);
#counter([total|today|yesterday]);


トップ   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS