본문 바로가기
HomeLab

Letsencrypt 를 이용한 인증서 설정

by reretay 2022. 4. 10.

본 포스트는 우분투를 기반으로 작성되었습니다.

 

1. snapd 설치 및 테스트

$ sudo apt update
$ sudo apt install snapd
$ sudo snap install hello-world
hello-world 6.4 from Canonical✓ installed
$ hello-world
Hello World!

 

2. snapd가 최신버전인지 확인

sudo snap install core; sudo snap refresh core

 

3. 기존에 설치된 Certbot-auto와 다른 Certbot OS 패키지가 있다면 삭제 (패키징 툴마다 다름)

sudo apt-get remove certbot
sudo dnf remove certbot
sudo yum remove certbot

 

4. Certbot 설치

sudo snap install --classic certbot

 

5. Certbot 명령어 준비

sudo ln -s /snap/bin/certbot /usr/bin/certbot

 

6. Certbot 실행

  • 인증서를 발급받고 설치까지 할때
sudo certbot --apache
  • 인증서만 발급받을때
sudo certbot certonly --apache

 

7. 자동재발급 테스트

sudo certbot renew --dry-run

 

설치완료

'HomeLab' 카테고리의 다른 글

APC Smart-UPS 1000 네트워크 메니지먼트  (0) 2021.10.30
(ZFS) import 했을때 마운트가 안될경우  (0) 2021.10.30

댓글