인증서 확인

2023. 12. 14. 10:25Let's Encrypt 인증서

 

Certbot로그 파일의 위치는

/var/log/letsencrypt/에 위치

 

certbot certificate  입력하면

해당 파일에 대해 다음과 같이 내역이 나온다.
Saving debug log to /var/log/letsencrypt/letsencrypt.log

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Found the following certs:
  Certificate Name: cfdc4u.com
    Domains: cfdc4u.com http://www.whylite.com
    Expiry Date: 2024-02-25 20:06:58+00:00 (VALID: 73 days)
    Certificate Path: /etc/letsencrypt/live/cfdc4u.com/fullchain.pem
    Private Key Path: /etc/letsencrypt/live/cfdc4u.com/privkey.pem
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

 

 

Let's Encrypt 인증서의 자동 갱신 설정을 확인하는 방법

1. 크론 작업으로 확인하기

crontab -l
sudo crontab -l

2개를 실행해 보면 'certbot renew'  와 같은 명령어가 리스트에 있으면 인증서가 자동으로 갱신

 

2. systemd 타이머로 확인해 보기

systemctl list-timers  명령실행시

certbot.service  의 이름이 나오면 자동으로 인증서가 갱신하고 있는 중이다.