본문 바로가기
Programming/환경셋팅

무료 SSL 인증서: certbot 사용하기

by Chan_찬 2024. 1. 4.
728x90

certbot SSL wildcard

certbot SSL wildcard 갱신순서

  1. 기존에 _acme-challenge 로 등록된 DNS TXT 모두 삭제
    • action: DNS name: _acme-challenge 삭제
  2. certbot 설치, certbot 명령어 실행
    • action: apk add certbot or apt-get -y install certbot
  3. 콘솔창에 나온 DNS name, value DNS TXT 타입으로 저장
    • action: DNS TXT 생성
    • DNS TXT 저장하는데 시간이 걸림
  4. 1차 DNS 저장 후 콘솔에서 엔터, 2차 DNS 내용나옴
  5. 2차 DNS TXT 저장 후 콘솔에서 엔터
Successfully received certificate.
Certificate is saved at: /etc/letsencrypt/live/xxx.co.kr-0001/fullchain.pem
Key is saved at:         /etc/letsencrypt/live/xxx.co.kr-0001/privkey.pem

certbot SSL wildcard 갱신 command

linux

apt-get -y install certbot

alpine-linux

apk add certbot

certbot wildcard

certbot certonly \
  -d xxx.co.kr \
  -d *.xxx.co.kr \
  -m xxx@xxx.co.kr
  --preferred-challenges=dns \
  --agree-tos \
  --manual \
  --server https://acme-v02.api.letsencrypt.org/directory
728x90
728x90
Buy me a coffeeBuy me a coffee

댓글