(메모) SSL 인증서 발급
$ sudo apt install python-certbot-nginx
$ sudo certbot --nginx -d 주소
aving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator nginx, Installer nginx
Cert is due for renewal, auto-renewing...
Renewing an existing certificate
Performing the following challenges:
http-01 challenge for mstjang.com
Waiting for verification...
Cleaning up challenges
-------------------------------------------------------------------------------
1: No redirect - Make no further changes to the webserver configuration.
2: Redirect - Make all requests redirect to secure HTTPS access. Choose this fornew sites, or if you're confident your site works on HTTPS. You can undo this change by editing your web server's configuration.
-------------------------------------------------------------------------------
Select the appropriate number [1-2] then [enter] (press 'c' to cancel): 2
인증서 자동갱신
$ sudo crontab -e
0 18,00 1 */2 * /usr/bin/certbot renew –>라인 추가
( 2달에 한번 1일날 18시에 갱신)