티스토리 뷰


평소처럼 letsencrypt ssl 인증서 만료 예정 메일을 받고 갱신을 하려고 했는데 약간의 사고가 나고 말았다. 한 두달 전 쯤에 집 내부 공유기 세팅을 초기화 할일이 있어서 초기한 뒤에 개인 서버에 NAT를 걸어둔 설정 몇개를 빼먹은 것이다. 

 

빼먹은 상태에서 letsencrypt ssl 인증서를 갱신하려고 

 

certbot renew 명령어를 계속 쳤고... NAT 설정이 잘못되어 내 서버에 접근이 불가능한 상태였으니 계속 오류가 나다가

 

여러번 계속 시도하다보니 한도 초과로 인해 잠금 상태에 걸리고 말았다. 

 

결론부터 얘기하자면 한 서너 시간 뒤에 다시 해보니 상태가 해제 되었다. letsencrypt 사이트에 보면 한시간 뒤나 뭐 일주일까지도 안된다는 얘기가 있었는데 한시간 뒤에 해보니 안되었고 서너 시간 뒤에 해보니 잘 되었다. 

 

certbot renew 명령어를 넣기 전에 --dry-run 옵션으로 갱신이 가능한 상태인지 먼저 체크해보는게 중요하단 생각이 들었다. 

 

root@ubuntu20:~# certbot renew
Saving debug log to /var/log/letsencrypt/letsencrypt.log

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Processing /etc/letsencrypt/renewal/cocomon.kr.conf
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Cert is due for renewal, auto-renewing...
Plugins selected: Authenticator webroot, Installer None
Renewing an existing certificate
Attempting to renew cert (cocomon.kr) from /etc/letsencrypt/renewal/cocomon.kr.conf produced an unexpected error: urn:ietf:params:acme:error:rateLimited :: There were too many requests of a given type :: Error creating new order :: too many failed authorizations recently: see https://letsencrypt.org/docs/rate-limits/. Skipping.
All renewal attempts failed. The following certs could not be renewed:
  /etc/letsencrypt/live/cocomon.kr/fullchain.pem (failure)

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

All renewal attempts failed. The following certs could not be renewed:
  /etc/letsencrypt/live/cocomon.kr/fullchain.pem (failure)
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1 renew failure(s), 0 parse failure(s)

 

nhj@ubuntu20:/app/actions-runner/work2/cocomon_fe/cocomon_fe/cocomon_main/static$ sudo certbot certonly --webroot -w . -d cocomon.kr
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator webroot, Installer None
Cert is due for renewal, auto-renewing...
Renewing an existing certificate
An unexpected error occurred:
There were too many requests of a given type :: Error creating new order :: too many failed authorizations recently: see https://letsencrypt.org/docs/rate-limits/
Please see the logfiles in /var/log/letsencrypt for more details.

 

 

https://letsencrypt.org/docs/rate-limits/

 

Rate Limits - Let's Encrypt

Auf Deutsch ansehen Ver en español Voir en Français לעבור לעברית 日本語で表示する 한국어로 보기 Ver em Português (do brasil) Просмотреть на русском Visa på svenska Переглянути українсько

letsencrypt.org

 

https://community.letsencrypt.org/t/how-to-debug-there-were-too-many-requests-of-a-given-type/37767/4

 

How to debug: There were too many requests of a given type

There are different rate limits, with different time periods. A basic answer is that it’s 1 hour for failures and 1 week for successfully issued certificates. https://letsencrypt.org/docs/rate-limits/ More or less. You can check Certbot’s logs in /var/

community.letsencrypt.org

 


댓글
최근에 올라온 글
최근에 달린 댓글