Certbot은 자동 제공된 웹루트를 사용하여 인증서를 갱신합니다.

Certbot은 자동 제공된 웹루트를 사용하여 인증서를 갱신합니다.

certbot의 --standalone 옵션을 사용하여 일부 인증서를 생성했지만 갱신하고 싶기 때문에 실행합니다(갱신되는지 테스트).

sudo certbot renew --dry-run

하지만 일부 도메인의 경우 오류가 발생합니다.

Attempting to renew cert from /etc/letsencrypt/renewal/example.org.conf produced an unexpected error: Missing command line flag or config entry for this setting:
Select the webroot for example.org:
Choices: ['Enter a new webroot', '/var/www/ellakcy/']

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

그래서 실행 시 sudo certbot renew웹루트 경로를 제공할 필요 없이 인증서를 자동 갱신할 수 있기를 원합니다.

어떻게 해야 합니까?

답변1

이는 해당 인증서가 다른 도메인에도 적용되기 때문에 발생 하므로 다른 도메인과 마찬가지로 /etc/letsencrypt/renewal/example.org.conf올바른 웹 루트를 지정해야 합니다 ./etc/letsencrypt/renewal/example.org.conf[[webroot_map]]

다른 도메인에 적용되는 내 도메인에 대해 ellak.org.cy다음을 지정했습니다.

[renewalparams]
authenticator = webroot
installer = None
account=^an_account_hash^
[[webroot_map]]
ellak.org = /var/www/ellak.org/
www.ellak.org=/var/www/ellak.org
ellak.org.cy = /var/www/ellakcy/
www.ellak.org.cy = /var/www/ellakcy/
imap.ellak.org.cy = /var/www/mail_letencrypt/
mail.ellak.org = /var/www/mail_letencrypt/
mail.ellak.org.cy = /var/www/mail_letencrypt/
pop.ellak.org.cy = /var/www/mail_letencrypt/
pop3.ellak.org.cy = /var/www/mail_letencrypt/
smtp.ellak.org.cy = /var/www/mail_letencrypt/
guest8.ellak.gr = /var/www/ellakcy/

따라서 오류가 제거되었습니다.

관련 정보