Certbot証明をやり直すには、
Certbot証明書の確認
[root@falcon21 ~]# certbot certificates
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Revocation status for /etc/letsencrypt/live/falcon21.space/cert.pem is unknown
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Found the following certs:
Certificate Name: falcon21.space
Domains: falcon21.space
Expiry Date: 2019-08-02 11:52:39+00:00 (INVALID: EXPIRED)
Certificate Path: /etc/letsencrypt/live/falcon21.space/fullchain.pem
Private Key Path: /etc/letsencrypt/live/falcon21.space/privkey.pem
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
期限切れを確認して、インストールされているcertbot関連ファイルを確認
[root@falcon21 ~]# repoquery --installed --list certbot
/etc/letsencrypt
/etc/sysconfig/certbot
/usr/bin/certbot
/usr/bin/letsencrypt
/usr/lib/systemd/system/certbot-renew.service
/usr/lib/systemd/system/certbot-renew.timer
/usr/share/doc/certbot-0.35.1
/usr/share/doc/certbot-0.35.1/CHANGELOG.md
/usr/share/doc/certbot-0.35.1/README.fedora
/usr/share/doc/certbot-0.35.1/README.rst
/usr/share/licenses/certbot-0.35.1
/usr/share/licenses/certbot-0.35.1/LICENSE.txt
/var/lib/letsencrypt
証明書関連ファイルの削除
[root@falcon21 ~]# certbot delete --cert-name falcon21,space
Saving debug log to /var/log/letsencrypt/letsencrypt.log
No certificate found with name falcon21,space (expected /etc/letsencrypt/renewal/falcon21,space.conf).
インストールされているcertbot関連ファイルを削除
[root@falcon21 ~]# rm -rf /etc/letsencrypt
[root@falcon21 ~]# rm -rf /etc/sysconfig/certbot
[root@falcon21 ~]# rm -f /usr/lib/systemd/system/certbot-renew.service
[root@falcon21 ~]# rm -f /usr/lib/systemd/system/certbot-renew.timer
[root@falcon21 ~]# rm -f /usr/bin/letsencrypt
[root@falcon21 ~]# rm -f /usr/bin/certbot
[root@falcon21 ~]# rm -rf /usr/share/doc/certbot-0.35.1
[root@falcon21 ~]# rm -rf /usr/share/licenses/certbot-0.35.1
[root@falcon21 ~]# rm -rf /var/lib/letsencrypt
certbot関連ファイル削除の確認
[root@falcon21 ~]# ls /etc
[root@falcon21 ~]# ls /etc/sysconfig
[root@falcon21 ~]# ls /usr/lib/systemd/system
[root@falcon21 ~]# ls /usr/share/doc/
[root@falcon21 ~]# ls /usr/share/licenses
[root@falcon21 ~]# ls /var/lib
----------------------------------
すべての削除を確認できたら、再インストール・設定。