주 메뉴 열기

wwiki β

Let's Encrypt certificate

Jhkim (토론 | 기여)님의 2018년 12월 28일 (금) 01:05 판

목차

와일드카드(*.example.com) 플러그인 에러

에러메시지

The error was: PluginError('An authentication script must be provided with --manual-auth-hook when using the manual plugin non-interactively.',)

원인

$ certbot-auto renew 명령시 참조하는 설정파일 (/etc/letsencrypt/renewal/xxxxxx.conf)에서

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

[renewalparams]

authenticator = manual

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

수동으로 되어 있는 경우는 certbot-auto renew 명령으로 갱신되지 않는다.

해결방법

다음 명령으로 수동으로 실행해줘야 한다.

$ certbot-auto certonly --manual --preferred-challenges dns-01 --server https://acme-v02.api.letsencrypt.org/directory -d *.example.com

명령 수행중에 다음과 같은 메시지가 나오는데,

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

Please deploy a DNS TXT record under the name

_acme-challenge.example.com with the following value:

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

DNS레코드를 갱신해 주어야 한다.

DNS 갱신여부 체크

DNS레코드는 바로 갱신되지 않으므로 아래 명령으로 반영여부를 확인하여야 한다.

$ host -t txt _acme-challenge.example.com

갱신완료 메시지

다음과 같은 메시지가 나왔다면 성공적으로 갱신된 것이다.

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

IMPORTANT NOTES:

- Congratulations! Your certificate and chain have been saved at:

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