- 1. 概要
- 2. 確認
- 3. 参考サイト
1. 概要
前ページで、証明書の内容を細かく確認する方法を記載しました。
本ページでは、証明書の期限を確認する方法を記載します。
2. 確認
「certbot」をインストールしていれば、下記のコマンド一発です。
certbot certificates
例えば、下記のように表示されます。
Saving debug log to /var/log/letsencrypt/letsencrypt.log
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Found the following certs:
Certificate Name: example.com
Serial Number: ... (省略) ...
Key Type: ECDSA
Domains: example.com
Expiry Date: 2026-07-05 23:28:32+00:00 (VALID: 65 days)
Certificate Path: /usr/local/etc/letsencrypt/live/example.com/fullchain.pem
Private Key Path: /usr/local/etc/letsencrypt/live/example.com/privkey.pem
Certificate Name: example.net
Serial Number: ... (省略) ...
Key Type: RSA
Domains: example.net
Expiry Date: 2026-04-29 01:40:39+00:00 (INVALID: EXPIRED)
Certificate Path: /usr/local/etc/letsencrypt/live/example.net/fullchain.pem
Private Key Path: /usr/local/etc/letsencrypt/live/example.net/privkey.pem
Certificate Name: example.org
Serial Number: ... (省略) ...
Key Type: ECDSA
Domains: example.org
Expiry Date: 2026-07-05 23:28:41+00:00 (VALID: 65 days)
Certificate Path: /usr/local/etc/letsencrypt/live/example.org/fullchain.pem
Private Key Path: /usr/local/etc/letsencrypt/live/example.org/privkey.pem
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
3. 削除
本ページは、「Gemini」伍長を参考にさせていただきました。
|
|