Apache

Apply SSL (Let’s Encrypt) on Ubuntu 16.04.3

1. 적용 환경

Ubuntu 16.04.3, Apache 2.4.18에 SSL(LetsEncrypt) 적용

 

2. Install

sudo apt-get update
sudo apt-get install software-properties-common
sudo add-apt-repository ppa:certbot/certbot
sudo apt-get update
sudo apt-get install python-certbot-apache

 

3. Make & Apply : 아래 명령 중 하나만 실행

sudo certbot --apache
sudo certbot --authenticator webroot --installer apache
sudo certbot --authenticator webroot --webroot-path [Document Root] --installer apache -d [도메인]
sudo certbot --authenticator webroot --webroot-path /var/www/test.com/ --installer apache -d test.com

 

4. Automating renewal

기간이 얼마 안 남았을때에만 renewal됨

sudo certbot renew --dry-run ; 오류 확인
sudo vi /etc/crontab ; 추가

0 0 * * * root sudo certbot renew

 

5. Inclued File

/etc/letsencrypt/options-ssl-apache.conf

 

6. SSL 인증서 위치

/etc/letsencrypt/live/[도메인]/*.pem

 

7. Log

/var/log/letsencrypt/letsencrypt.log

 

Back To Top