티스토리 뷰
저장소를 추가한다. 기존에 php 설치하면서 이미 설치되어있긴했다.
yum intstall epel-release
certbot 설치
yum install certbot
필요한 모듈 설치
yum install python2-certbot-nginx <---버전에 따라 다를수 있음 python3-certbot-nginx, certbot-nginx
와일드카드 인증서 설치
certbot certonly --manual -d "*.도메인.co.kr" -d "도메인.co.kr"
작업 후 nginx 설정에 ssl 추가 하면 됨 인증서 설치 위치는
/etc/letsencrypt/live/
conf 설정은
ssl_certificate /etc/letsencrypt/live/도메인.co.kr/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/도메인.co.kr/privkey.pem;
nginx 설정 테스트
nginx -t
이상없으면 재시작
systemctl restart nginx
적용되는지 보면 됨 끝~
'serverSide > Linux' 카테고리의 다른 글
[CentOS7] SYSTEMCTL 명령어 (0) | 2021.10.26 |
---|---|
certbot LetsEncrypt wildcard 인증서 자동 갱신 (0) | 2021.09.15 |
cloudflare + nginx + xml 속도지연 (0) | 2021.06.23 |
[nginx] aceess.log awk 이용 (0) | 2021.03.11 |
[ModSecurity] CentOS7 + nginx + ModSecurity 설치 (0) | 2021.03.04 |
댓글