728x90
무료 인증서 let`s Encrypt 를 설치해보자!!
인증서를 사용할 환경을 선택한다.
snapd 설치
1. repository 업그레이드
sudo dnf install epel-release
sudo dnf upgrade
2. snapd 설치
sudo yum install snapd
✨혹시 Error: Unable to find a match: snapd 에러가 나온다면 /etc/yum.repos.d/oracle-epel-ol8.repo 를 수정할것
sudo vi /etc/yum.repos.d/oracle-epel-ol8.repo
[ol8_developer_EPEL] 아래에 enabled 값을 0 에서 1로 변경할것
3. snapd 서비스 연결
sudo systemctl enable --now snapd.socket
4. snapd 링크 연결
sudo ln -s /var/lib/snapd/snap /snap
Certbot 설치
1. certboot 설치
sudo snap install --classic certbot
2. certbot 링크 연결
sudo ln -s /snap/bin/certbot /usr/bin/certbot
3. certbot nginx로 실행
sudo certbot --nginx
또는
sudo certbot certonly --nginx
4. 자동갱신 테스트
sudo certbot renew --dry-run
728x90