無料SSL証明書(Let’s Encrypt)の自動更新でエラーログ

Zabbixで「/var/log/messages」のログ監視をしていますが、以下のエラーが出ていました

Jun 13 00:56:37 WEB01 systemd[1]: Failed to start This service automatically renews any certbot certificates found.

certbot のログ(/var/log/letsencrypt/letsencrypt.log)を確認すると以下のように、自動更新に失敗しています

$ view /var/log/letsencrypt/letsencrypt.log
2024-06-13 21:02:00,170:DEBUG:certbot._internal.error_handler:Calling registered functions
2024-06-13 21:01:55,382:INFO:certbot._internal.auth_handler:http-01 challenge for www.example.jp
2024-06-13 21:01:55,382:INFO:certbot._internal.plugins.webroot:Using the webroot path /var/www/vhost/example.jp/html for all unmatched domains.
2024-06-13 21:01:55,383:DEBUG:certbot._internal.plugins.webroot:Creating root challenges validation dir at /var/www/vhost/example.jp/html/.well-known/acme-challenge
2024-06-13 21:01:55,385:DEBUG:certbot._internal.plugins.webroot:Creating root challenges validation dir at /var/www/vhost/example.jp/html/.well-known/acme-challenge
2024-06-13 21:01:55,387:DEBUG:certbot._internal.plugins.webroot:Attempting to save validation to /var/www/vhost/example.jp/html/.well-known/acme-challenge/xxxxxxxxxxxxxxxxxx
2024-06-13 21:01:55,389:DEBUG:certbot._internal.plugins.webroot:Attempting to save validation to /var/www/vhost/example.jp/html/.well-known/acme-challenge/xxxxxxxxxxxxxxxxxx

再度、cerbot renew でSSL証明書を更新ができればOKです。

スポンサーリンク

0
0