使用 certbot 在 Ubuntu 上產生 Let’s Encrypt 的憑證,並套用到 Nginx 上
Nginx 設定的部分可以參考這個工具 https://nginxconfig.io/
Generate a stronger DHE parameter
1 | openssl dhparam -out /etc/ssl/certs/dhparam.pem 4096 |
File /etc/nginx/snippets/ssl-dev.gclin.org.conf
1 | ssl_certificate /etc/letsencrypt/live/dev.gclin.org/fullchain.pem; |
File /etc/nginx/snippets/ssl-params.conf
1 | # from https://cipherli.st/ |
Install Certbot
1 | apt update |
Obtaining an SSL Certificate
1 | certbot certonly --webroot -w /var/www/html -d dev.gclin.org |
File /etc/nginx/sites-available/dev.gclin.org
1 | server { |