미니프로젝트/지하철역 보관함대여 앱

[미니프로젝트 ] [1] HTTPS 적용 : 2. cerbot 설치 및 인증서 발급

L.Joey 2024. 3. 14. 11:44

참고 사이트

 https://certbot.eff.org/instructions

 

Installing snap on Ubuntu

snapd 설치

$ sudo apt update
$ sudo apt install snapd

 

snapd 설치 후 확인

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

 

cerbot 이 설치되어 있다면 아래 명령어 중 하나를 이용하여 삭제

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

 

cerbot 설치

$ sudo snap install --classic certbot

 

cerbot 커맨드 설정

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

 

cerbot 이용해서  certification을 얻고 설치하기

sudo certbot --nginx -d 도메인주소

 

renewal 확인

$ sudo certbot renew --dry-run