TL;DR

올 초, Let’s Encrypt에서는 DNS 기반 새로운 챌린지를 도입한다는 발표가 있었습니다. 기존 DNS-01 챌린지의 경우,LE의 SSL인증서 발급/갱신 작업할 때, DNS의 _acme-challenge 호스트의 TXT 정보를 함께 갱신해 줘야 하는 불편함이 있었는데 “DNS-PERSIST-01” 챌린지는 한 번의 등록만으로 편하게 인증서를 갱신할 수 있는 방식입니다. 마침 만료되는 SSL 인증서가 있어서 새로운 챌린지 방식을 시도해 보았습니다. 새로운 LE client인 lego-cli에는 DNS-PERSIST-01 챌린지가 포함되어 있었지만 LE 서버 자체는 지원하지 않고 있었습니다.

 

AD

lego-cli 설치 :

  • 실행 파일: ~/Downloads/lego-cli & ~/.local/bin/lego
  • 설정 파일: /data1/lego-cli
  • Source: GitHub – go-acme/lego: Let’s Encrypt/ACME client and library written in Go
  • 신규 account 등록
    • 1차 시도: email 주소가 Account ID로 등록됨.
      % lego accounts register --accept-tos \
      --email email@example.com \
      --log.level debug
      2026-08-24T08:42:15.633422123+09:00 INFO  Private key saved. filepath=/home/email/.lego/accounts/acme-v02.api.letsencrypt.org/email@example.com/email@example.com.key
      2026-08-24T08:42:16.202057001+09:00 INFO  Registering the account. email=email@example.com
      2026-08-24T08:42:16.625781461+09:00 WARN  !!!! HEADS UP !!!!
      
      Your account credentials have been saved in your
      configuration directory at "/home/email/.lego/accounts".
      
      You should make a secure backup of this folder now. This
      configuration directory will also contain private keys
      generated by lego and certificates obtained from the ACME
      server. Making regular backups of this folder is ideal.
      
    • 2차 시도 : with —account-id myaccount
    [black@m75:~]% lego accounts register --accept-tos \
    --email email@example.com --account-id myaccount \
    --log.level debug
    2026-08-24T08:58:05.083656033+09:00 INFO  Private key saved. filepath=/home/email/.lego/accounts/acme-v02.api.letsencrypt.org/myaccount/myaccount.key
    2026-08-24T08:58:05.645536988+09:00 INFO  Registering the account. email=email@example.com
    2026-08-24T08:58:06.067010406+09:00 WARN  !!!! HEADS UP !!!!
    
    Your account credentials have been saved in your
    configuration directory at "/home/email/.lego/accounts".
    
    You should make a secure backup of this folder now. This
    configuration directory will also contain private keys
    generated by lego and certificates obtained from the ACME
    server. Making regular backups of this folder is ideal.
    
    
  • account 확인
% lego accounts list
Found the following accounts:
myaccount
├── Email: email@example.com
├── Server: <https://acme-v02.api.letsencrypt.org/directory>
├── Key Type: EC256
└── Path: /home/black/.lego/accounts/acme-v02.api.letsencrypt.org/myaccount/account.json

결과

  • lego 실행 결과는 아직 Let’s Encrypt 에서 정식 지원하지 않는지 ‘resolver’ 오류가 발생.
  • LE 개발 게시판에서 찾아 보니 최근 논의에서도 Q3 까지는 대기하라고 함
  • certbot & dns-challenge 로 11월까지 연장 완료.

AD

LEAVE A REPLY

Please enter your comment!
Please enter your name here