본문 바로가기
서버/Linux

[Linux] certbot 명령으로 인증서 삭제하는방법

by yunamom 2022. 4. 19.
728x90
300x250

인증서삭제

◇ 인증서 목록 확인

ubuntu@:~$ sudo certbot certificates
Saving debug log to /var/log/letsencrypt/letsencrypt.log

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Found the following certs:
  Certificate Name: yunamom.duckdns.org
    Domains: yunamom.duckdns.org
    Expiry Date: 2022-04-17 23:33:36+00:00 (INVALID: EXPIRED)
    Certificate Path: /etc/letsencrypt/live/yunamom.duckdns.org/fullchain.pem
    Private Key Path: /etc/letsencrypt/live/yunamom.duckdns.org/privkey.pem
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

◇ 인증서 삭제 하기

ubuntu@:~$ sudo certbot delete
Saving debug log to /var/log/letsencrypt/letsencrypt.log

Which certificate(s) would you like to delete?
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1: yunamom.duckdns.org
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Select the appropriate numbers separated by commas and/or spaces, or leave input
blank to select all options shown (Enter 'c' to cancel): 1

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Deleted all files relating to certificate yunamom.duckdns.org.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

◇ 인증서 목록 확인

ubuntu@:~$ sudo certbot certificates
Saving debug log to /var/log/letsencrypt/letsencrypt.log

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
No certs found.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
ubuntu@:~$
728x90
300x250

코드