yeonghoon.kim

  • 게시판
  • 갤러리
  • aws

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

김영훈 2025.09.23 09:42 조회 수 : 66

갑자기 certbot renew 명령으로 인증서가 갱신되지 않는 문제 발생.

플러그인을 써서 진행햐아한다고 함. 

dns 레코드를 수동으로 변경해야하는 상황에서 써야 함.

 

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

Processing /etc/letsencrypt/renewal/도메인.conf

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

Cannot extract OCSP URI from /etc/letsencrypt/archive/도메인/cert10.pem

Cert is due for renewal, auto-renewing...

Could not choose appropriate plugin: The manual plugin is not working; there may be problems with your existing configuration.

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

Failed to renew certificate 도메인 with error: The manual plugin is not working; there may be problems with your existing configuration.

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

 


-auth-hook.sh

#!/bin/bash
# 수동 인증용 manual-auth-hook 예시
RECORD="_acme-challenge.${CERTBOT_DOMAIN}"
echo "--------------------------------------"
echo "DNS에서 아래 TXT 레코드를 등록하세요:"
echo "도메인: ${RECORD}"
echo "값:     ${CERTBOT_VALIDATION}"
echo "--------------------------------------"
# 로그로도 남김
echo "${RECORD} TXT ${CERTBOT_VALIDATION}" > "/tmp/${CERTBOT_DOMAIN}_dns_challenge.txt"
# DNS Propagation 대기(필요시 sleep, 혹은 직접 엔터)
read -p "DNS 등록 후 계속하려면 엔터를 누르세요..."

 

 -cleanup-hook.sh

#!/bin/bash
# cleanup용(등록 기록 제거/알림)
RECORD="_acme-challenge.${CERTBOT_DOMAIN}"
echo "--------------------------------------"
echo "DNS에서 아래 TXT 레코드를 삭제하세요:"
echo "도메인: ${RECORD}"
echo "값:     ${CERTBOT_VALIDATION}"
echo "--------------------------------------"
rm -f "/tmp/${CERTBOT_DOMAIN}_dns_challenge.txt"
read -p "TXT 삭제 후 계속하려면 엔터를 누르세요..."

 

 -ssl_renew.sh

#!/bin/bash
DOMAIN="사용할 도메인"
CERTBOT="/usr/bin/certbot"

${CERTBOT} certonly --manual --preferred-challenges dns \
  --manual-auth-hook "./auth-hook.sh" \
  --manual-cleanup-hook "./cleanup-hook.sh" \
  -d "${DOMAIN}"
 


  • 추천 0

  • 비추천 0
이 게시물을
목록

댓글 0

번호 제목 글쓴이 날짜 조회 수
공지 2025 일본 여행 계획 김영훈 2024.10.10 1781
공지 현금, 저축, 투자, 지출, 예산, 보험 내역(2024-05-30) 김영훈 2024.03.10 1462
» certbot renew 실패 - The error was: PluginError('An authentication script must be provided with --manual-auth-hook when using the manual plugin non-interactively.',) 김영훈 2025.09.23 66
266 rockylinux rsyncd 설치 김영훈 2025.07.30 367
265 BPFDoor 악성코드 통합 점검 스크립트 (KISA 가이드 기반) 김영훈 2025.05.16 1221
264 error: invalid conversion from ‘char’ to ‘char*’ [-fpermissive] 김영훈 2025.05.08 19412
263 prometheus, grafana, node-exporter 임시 김영훈 2025.01.03 909
262 MegaCli64 Hotspare 구성 김영훈 2024.11.11 1043
261 12월 기타큐슈 2박 3일 관련 김영훈 2024.11.08 932
260 rockylinux8 php7.2 -> php7.4 업그레이드 : dnf module 기능 이용 김영훈 2024.10.14 1071
259 rockylinux8 apache-2.4.16, php-5.3.29 설치 file 김영훈 2024.10.11 1203
258 정보보안기사 오답노트 김영훈 2024.10.01 915
257 달력 이미지(chatgpt) file 김영훈 2024.09.05 1083
256 백업된 디스크 복구 김영훈 2024.06.13 1071
255 openai api를 이용한 챗봇 구현 샘플 김영훈 2024.06.11 1037
254 Dev-C++ 5.11 설치 매뉴얼 file 김영훈 2024.03.09 1378
253 오라클 클라우드 arm 환경에서 Palworld 서버 구축 [11] 김영훈 2024.01.29 2080
252 리눅스 공인 아이피 확인 - curl ipinfo.io 김영훈 2024.01.29 1038
251 Oracle 9i cx_Oracle 클라이언트 연결 방법 [1] 김영훈 2024.01.12 1229
250 error: rpmdb: BDB2034 unable to allocate memory for mutex; resize mutex region [1] 김영훈 2024.01.08 1286
249 마크다운 TIL 템플릿 김영훈 2024.01.03 705
248 Stable Diffusion 설치 - rockylinux9 [테스트 - 나 / 정리 -chatgpt] [1] 김영훈 2024.01.02 1339
쓰기 태그
 첫 페이지 1 2 3 4 5 6 7 8 9 10 끝 페이지