예전 방법
$ wget https://raw.githubusercontent.com/certbot/certbot/7f0fa18c570942238a7de73ed99945c3710408b4/letsencrypt-auto-source/letsencrypt-auto -O /opt/certbot-auto
$ chmod 755 /opt/certbot-auto
$ mv /opt/certbot-auto /기존설치경로/certbot-auto
certbot 홈페이지 가서 하라는 대로 하기
우리 서버는 ubuntu 20.04니까

위와 같이 들어가서 하라는 대로 따라한다.
$ sudo snap install core; sudo snap refresh core
$ sudo snap install --classic certbot
$ sudo ln -s /snap/bin/certbot /usr/bin/certbot
$ sudo certbot --nginx

# openssl pkcs12 -export -in fullchain.pem -inkey privkey.pem -out keystore.p12 -name airpageserver -CAfile chain.pem -caname root

비밀번호는 귀찮으니 그냥 root로 ㅎㅎ
어쨌든 위의 명령어를 치고 나면 keystore.p12가 생성된다.

mv하라고 하지만 무서우니까 cp로 home 디렉토리로 이동

그런 다음 사이트로 이동해서 확인
https://j4a401.p.ssafy.io/
리다이렉트 후
[http://j4a401.p.ssafy.io/](http://j4a401.p.ssafy.io/) -> https://j4a401.p.ssafy.io/ 이동됨 확인하기