LetsEncrypt SSL 証明書の更新(2025/2/27 実施)
February 27, 2025 – 5:12 pmLetsEncrypt SSLの有効期限が2週間後に迫ってきたので、いつもどおり更新作業を実施した。
以下、更新時のLogを転載:
[root@Server02 ~]# certbot certonly --manual Saving debug log to /var/log/letsencrypt/letsencrypt.log Please enter the domain name(s) you would like on your certificate (comma and/or space separated) (Enter 'c' to cancel): *.yamasnet.com Renewing an existing certificate for *.yamasnet.com - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Please deploy a DNS TXT record under the name: _acme-challenge.yamasnet.com. with the following value: uUXXqqeyBYYIJm3bg6OPM1bgk899iuEYz2igBvgX345 Before continuing, verify the TXT record has been deployed. Depending on the DNS provider, this may take some time, from a few seconds to multiple minutes. You can check if it has finished deploying with aid of online tools, such as the Google Admin Toolbox: https://toolbox.googleapps.com/apps/dig/#TXT/_acme-challenge.yamasnet.com. Look for one or more bolded line(s) below the line ';ANSWER'. It should show the value(s) you've just added. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Press Enter to Continue Successfully received certificate. Certificate is saved at: /etc/letsencrypt/live/yamasnet.com/fullchain.pem Key is saved at: /etc/letsencrypt/live/yamasnet.com/privkey.pem This certificate expires on 2025-05-28. These files will be updated when the certificate renews. NEXT STEPS: - This certificate will not be renewed automatically. Autorenewal of --manual certificates requires the use of an authentication hook script (--manual-auth-hook) but one was not provided. To renew this certificate, repeat this same certbot command before the certificate's expiry date. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - If you like Certbot, please consider supporting our work by: * Donating to ISRG / Let's Encrypt: https://letsencrypt.org/donate * Donating to EFF: https://eff.org/donate-le - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
httpdを更新し、証明書を反映:
[root@Server02 ~]# systemctl restart httpd
更新後の証明書を確認:
[root@Server02 ~]# certbot certificates Saving debug log to /var/log/letsencrypt/letsencrypt.log - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Found the following certs: Certificate Name: yamasnet.com Serial Number: 3a07316e379866c8db109010f212fbd14e8 Key Type: ECDSA Domains: *.yamasnet.com Expiry Date: 2025-05-28 06:59:11+00:00 (VALID: 89 days) Certificate Path: /etc/letsencrypt/live/yamasnet.com/fullchain.pem Private Key Path: /etc/letsencrypt/live/yamasnet.com/privkey.pem - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -