nginx로 certbot SSL 인증서 발급하기

hugeman·2023년 8월 8일
0

nginx

목록 보기
3/4
post-thumbnail

환경

ubuntu-jammy-22.04-amd64-server-20230516
nginx로 http 도메인 설정이 완료된걸 가정으로 한다.

certbot 설치

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

nginx를 이용한 certbot ssl 인증서 발급

sudo certbot --nginx

결과

nginx에서 설정파일을 살펴보면 http로 접속시 https로 redirect해주는 설정이 자동으로 입력되어 있으며,
nginx를 재시작만 해주면 되니 아주 편하게 https 설정이 완료된다.

profile
한 줄!

0개의 댓글