certbot/let's encrypt

무료인증서로 간단히 발급받을 수 있는 certbot( let's encrypt )란게 있다.

nginx 와 연동하여 설치부터 발급까지 사용했던 커맨드를 기록해 둔다.

sudo add-apt-repository ppa:certbot/certbot
sudo apt-get install python-certbot-nginx
sudo apt-get -purge remove python-certbot-nginx-*
sudo apt-get --purge remove python-certbot-nginx-*
sudo add-apt-repository ppa:certbot/certbot
sudo snap install --classic certbot
sudo ln -s /snap/bin/certbot /usr/bin/certbot

— 여기부터는 도메인 추가시
sudo certbot --nginx -d {도메인1} -d {도메인2} ...
sudo systemctl status snap.certbot.renew.service (상태확인 )
sudo certbot renew --dry-run ( 자동갱신 )


추가

도메인 삭제 : sudo certbot delete

Subscribe to X세대 신입사원

Don’t miss out on the latest issues. Sign up now to get access to the library of members-only issues.
jamie@example.com
Subscribe
774-86-01972 cinnabar.3d@gmail.com