반응형

자꾸 찾아보기 귀찮아서 간단하게 커맨드만 나열해봤습니다.

 

Ubuntu 18.04 LTS

# 발급
$ sudo apt-get update
$ sudo apt-get install software-properties-common
$ sudo add-apt-repository universe
$ sudo apt-get update

$ sudo apt-get install certbot python3-certbot-nginx

$ sudo certbot --nginx -d example.com -d www.example.com
# 폐기
sudo certbot revoke --cert-path /etc/letsencrypt/archive/${YOUR_DOMAIN}/cert1.pem
# 자동 갱신
# /etc/cron.d/certbot
SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin

0 */12 * * * root certbot -q renew --nginx --renew-hook 'service nginx reload'
반응형

+ Recent posts