記事が多すぎて逆に分からんは(といいつつ書く
環境
- Ubuntu Server 16.04
- nginx 1.10.0
用意するもの
インストール
git clone https://github.com/letsencrypt/letsencrypt.git cd letsencrypt/ ./letsencrypt-auto
実行
./certbot-auto certonly --standalone -d example.com
nginxの設定
server {
listen 443;
server_name _;
root /var/www/html;
index index.html index.htm;
ssl on;
ssl_certificate /etc/letsencrypt/live/www.encrypt.local/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/www.encrypt.local/privkey.pem;
}