linux

Certbot 갱신에러

mysop 2021. 12. 8. 13:43
반응형
# certbot renew
Saving debug log to /var/log/letsencrypt/letsencrypt.log

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Processing /etc/letsencrypt/renewal/도메인.com.conf
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Cert is due for renewal, auto-renewing...
Plugins selected: Authenticator webroot, Installer None
Starting new HTTPS connection (1): acme-v02.api.letsencrypt.org
Renewing an existing certificate for 도메인.com and 2 more domains
Performing the following challenges:
http-01 challenge for 도메인.co.kr
http-01 challenge for 도메인.com
http-01 challenge for 도메인.kr
Cleaning up challenges
Failed to renew certificate 도메인.com with error: Missing command line flag or config entry for this setting:
Select the webroot for 도메인.com:
Choices: ['Enter a new webroot', '/var/www/도메인.com/']

(You can set this with the --webroot-path flag)

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
All renewals failed. The following certificates could not be renewed:
  /etc/letsencrypt/live/도메인.com/fullchain.pem (failure)
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1 renew failure(s), 0 parse failure(s)

renew시 위와 같이 에러가 발생했다

 

Choices: ['Enter a new webroot', '/var/www/도메인.com/']
(You can set this with the --webroot-path flag)

 

위 항목을 잘보면... 설정에서 머가 빠져있는데 웹경로가 빠졌다고 한다.

 

가장 빠른 해결 방법은 

#certbot renew --webroot-path=웹절대경로

 

하면 바로 인증서 갱신이 처리 된다

 

설정을 수정하려면

/etc/letsencrypt/renewal 폴더아래에 conf파일을 열어서

항목을 추가해주면 된다.

 

webroot_path = 경로명

 

이상.

728x90
반응형