Let's Encrypt 인증서가 90일마다 만료되는데 자동 갱신은 어떻게 설정하나요?
certbot 자동 갱신 설정:
# 1. certbot 설치 (Ubuntu)sudo apt install certbot python3-certbot-nginx# 2. 인증서 발급sudo certbot --nginx -d example.com -d www.example.com# 3. 자동 갱신 테스트sudo certbot renew --dry-run# 4. 자동 갱신 크론잡 (보통 자동 설정됨)# /etc/cron.d/certbot 또는 systemd timer 확인systemctl list-timers | grep certbot# 수동 크론잡 (필요 시)0 3 * * * certbot renew --quiet --post-hook "systemctl reload nginx"
주의사항:
--dry-run
--post-hook
댓글 2
certbot 자동 갱신 설정:
주의사항:
--dry-run으로 먼저 테스트--post-hook)