728x90

1. Certbot 저장소 설정 및 설치
sudo apt-get update
sudo apt-get install software-properties-common
sudo add-apt-repository universe
sudo add-apt-repository ppa:certbot/certbot
sudo apt-get update
sudo apt-get install certbot python3-certbot-nginx
2. SSL 인증서 획득
sudo certbot --nginx -d mysite.com
- mysite.com 은 인증서를 적용할 도메인을 적어주면 된다.
3. 인증서 자동 갱신
sudo certbot renew --dry-run
728x90
반응형
'TIL > 인프라' 카테고리의 다른 글
[서버] XShell을 이용한 EC2 접속 (0) | 2023.03.16 |
---|