cerbot 설치

sudo snap install --classic certbot

cerbot 명령어를 PATH에 추가

cerbot 명령어를 어디서든 수비게 사용할 수 있도록 심볼릭 링크를 생성한다.

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

SSL 인증서 발급

sudo certbot --nginx -d lenslog.cloud -d [도메인 이름]
# Ex. sudo certbot --nginx -d lenslog.cloud -d lenslog.cloud

스크린샷 2025-11-30 오후 8.21.58.png

Nginx 재시작

sudo systemctl restart nginx

https 도메인 주소로 접속해서 확인


<aside> 📌

출처. 뤼튼

</aside>