본문 바로가기

Certificates, ssl, tls

(3)
(에러)Certbot fails to run hook scripts sudo docker run -it --rm --name certbot -v '/etc/letsencrypt:/etc/letsencrypt' certbot -d $SERVER_DOMAIN --agree-tos --register-unsafely-without-email --manual \ --preferred-challenges dns --manual-auth-hook $HOOK_RENEWAL \ --manual-cleanup-hook $HOOK_CLEANUP --manual-public-ip-logging-ok \ --force-renewal certonly 다음과 같이 docker로 certbot을 실행시키고 hook으로 script를 건네줄 때, 혹은 certbot을 docker container ..
Auto Renewal for let's encrypt certificate with wildcard domain wildcard로 된 domain(*.domain.com)같은 경우 dns challenge를 통해 발급을 받는다. let's encrypt는 보통 3개월 단위로 갱신을 해줘야하기 때문에 매번 하기 귀찮을 수 밖에 없다. 따라서 crontab같은 job scheduler를 이용하면 편하다. let's encrypt 인증서는 certbot을 이용하는데 갱신하려면 다음과 같은 명령어를 입력하면 된다. sudo certbot renew 하지만 다음과 같은 에러를 얻는다. the error occurs: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Processing /etc/letsencrypt/renewal/...
Certificates and Let's encrypt let's encrypt는 인증서를 발급받기 위한 기관 중 하나로 유일하게 무료로 제공됩니다. let's encrypt 인증서를 발급받는 방법들은 여러가지이지만, 그 중에 가장 흔히 쓰이는 certbot을 이용하여 발급받아보도록 하겠습니다. $ sudo apt update $ sudo apt-get install certbot 인증서를 발급받기에는 다양한 방식이 존재한다. Standalone: 해당 도메인의 인증을 위해 도메인의 작동을 멈추고 유효성을 확인해 인증서를 발급하는 방식이다. 이러한 방식은 동시에 여러 도메인을 발급받을 수 있지만, 도메인을 중간에 중단해야한다. Webroot: 도메인내의 path에 유효성을 확인할 수 있는 파일을 업로드하여 인증서를 발급한다. 이러한 방식은 nginx를 중단시..