0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Let's Encrypt の証明書を削除する方法

Last updated at Posted at 2020-08-22

Let's Encrypt の証明書を削除する方法

証明書の確認方法

sudo certbot certificates

次のような方法でも確認が出来ます。

sudo ls /etc/letsencrypt/live/

証明書の削除

sudo certbot revoke --cert-name=test.example.com

削除後

/etc/apache2/sites-available にある設定ファイルを編集または、削除します。
設定ファイルを削除した場合は、
/etc/apache2/sites-enabled にあるシンボリックリンクも削除します。

設定の確認

sudo apache2ctl configtest

Apache2 の再起動

sudo systemctl restart apache2

次のバージョンで確認しました。

$ certbot --version
certbot 0.40.0

$ sudo apache2ctl -v
Server version: Apache/2.4.41 (Ubuntu)
Server built:   2020-08-12T19:46:17

期限切れの証明書を削除する方法

sudo certbot certificates で次のようになった時

Found the following certs:
  Certificate Name: www.example.com-0002

次のコマンドで削除ができます。

sudo certbot delete --cert-name www.example.com-0002
0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?