occidere / TIL

Today I Learned
GNU General Public License v3.0
65 stars 1 forks source link

certbot-auto 를 이용해 Nginx 기반의 letsencrypt 인증서 갱신 시 실패하는 경우 #79

Open occidere opened 5 years ago

occidere commented 5 years ago

certbot-auto 를 이용해 Nginx 기반의 letsencrypt 인증서 갱신 시 실패하는 경우

상황

nginx 의 webroot 방식에서 certbot-auto renew --force-renewal 로 갱신을 시도하나 에러가 나는 경우

unauthorized 에러인 경우

Domain: example.occidere.com
Type:   unauthorized
Detail: Invalid response from
https://example.occidere.com/.well-known/acme-challenge/YTiyCeNPk6d0ifJcwOzGvja23V5DPXCQZQ9nvIxo68Y
[xxx.xxx.xxx.xxx]:
"{\"timestamp\":\"2019-03-13T00:30:03.542+0000\",\"status\":404,\"error\":\"Not
Found\",\"message\":\"No message available\",\"path\":\"/.well-kno"

Connection Refused 에러인 경우

Domain: example.occidere.com
Type:   connection
Detail: Fetching
http://example.occidere.com/.well-known/acme-challenge/GAPYtpayVafl5Qgy8enxJFVS1d91PbOIAI09G3JL2VI:
Connection refused

참고

usamibolt commented 2 years ago

아.. 드디어 해결했네요. 감사합니다.

hjk70288 commented 2 years ago

Connection Refused 에러때문에 고생했는데 nginx가 정상적으로 실행되지 않아서 발생한 오류였네요... 덕분에 잘 해결했습니다. 감사합니다!!