Skip to main content

Let's encrypt


Installation

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

Nginx

sudo vim /etc/nginx/conf.d/default.conf
server {
listen 80;
listen [::]:80;
return 301 https://$host$request_uri;
}

certbot

sudo certbot --nginx \
-d wiki.loliot.net \
-d loliot.net

μžλ™μœΌλ‘œ /etc/letsencrypt에 인증관련 νŒŒμΌμ„ μƒμ„±ν•˜κ³ , /etc/nginx/conf.d/default.conf λ‚΄μš©λ„ μˆ˜μ •μ„ ν•΄μ€λ‹ˆλ‹€.

Renew

sudo certbot renew