gpffh1011

작업19, CertBot 인증서 자동갱신설정 본문

설정, 세팅, 오류

작업19, CertBot 인증서 자동갱신설정

gpffh1011 2020. 9. 11. 01:45

작업19, CertBot 인증서 자동갱신설정

 

CertBot은 원래 유료 서비스이기 때문에, 3개월에 한번씩 갱신을 해주어야 한다.

>> 3개월에 1번씩 자동갱신 설정

 

  • certbot.eff.org/certbot.eff.org/lets-encrypt/centosrhel7-nginx 접속
  • 5. Set up automatic renewal 에 있는 코드(아래코드)를 PuTTY에서 진행
    • echo "0 0,12 * * * root python -c 'import random; import time; time.sleep(random.random() * 3600)' && certbot renew -q" | sudo tee -a /etc/crontab > /dev/null

  •  sudo vim /etc/crontab 에서 추가된 것 확인