사이트 내 전체검색
Let’s Encrypt 3개월 인증서 자동 갱신 방법 (우분투 기준)
로빈아빠
https://cmd.kr/server/735 URL이 복사되었습니다.

본문

vi /etc/crontab 추가
10 */6  * * *  root    certbot -auto renew --renew-hook "service apache2 restart"

인증서 상태 보기
# certbot -auto certificates

Saving debug log to /var/log/letsencrypt/letsencrypt.log
-------------------------------------------------------------------------------
Found the following certs:
  Certificate Name: *****
    Domains: *****
    Expiry Date: 2018-03-30 10:06:03+00:00 (VALID: 39 days)
    Certificate Path: /etc/letsencrypt/live/*****/fullchain.pem
    Private Key Path: /etc/letsencrypt/live/*****/privkey.pem
-------------------------------------------------------------------------------



수동갱신하기 (만료 날짜가 되면 동작된다.)

# certbot -auto renew
Saving debug log to /var/log/letsencrypt/letsencrypt.log
-------------------------------------------------------------------------------
Processing /etc/letsencrypt/renewal/*****.conf
-------------------------------------------------------------------------------
Cert not yet due for renewal
-------------------------------------------------------------------------------
The following certs are not due for renewal yet:
  /etc/letsencrypt/live/*****/fullchain.pem (skipped)
No renewals were attempted.
-------------------------------------------------------------------------------

출처 : howcode.co.kr  로빈아빠 김성대

댓글목록

등록된 댓글이 없습니다.

1,139 (1/23P)

Search

Copyright © Cmd 명령어 18.188.76.209