IMPORTANT NOTES: - Congratulations! Your certificate and chain have been saved at: /etc/letsencrypt/live/yingming006.cn/fullchain.pem Your key file has been saved at: /etc/letsencrypt/live/yingming006.cn/privkey.pem Your cert will expire on 2020-11-22. To obtain a new or tweaked version of this certificate in the future, simply run certbot again. To non-interactively renew *all* of your certificates, run "certbot renew" - Your account credentials have been saved in your Certbot configuration directory at /etc/letsencrypt. You should make a secure backup of this folder now. This configuration directory will also contain certificates and private keys obtained by Certbot so making regular backups of this folder is ideal. - If you like Certbot, please consider supporting our work by:
Donating to ISRG / Let's Encrypt: https://letsencrypt.org/donate Donating to EFF: https://eff.org/donate-le
ssl_certificate /etc/letsencrypt/live/yingming006.cn/fullchain.pem; ssl_certificate_key /etc/letsencrypt/live/yingming006.cn/privkey.pem; ssl_trusted_certificate /etc/letsencrypt/live/yingming006.cn/chain.pem; include snippets/ssl.conf; include snippets/letsencrypt.conf;
return 301 https://yingming006.cn$request_uri; }
server { listen 443 ssl http2; server_name yingming006.cn;
ssl_certificate /etc/letsencrypt/live/yingming006.cn/fullchain.pem; ssl_certificate_key /etc/letsencrypt/live/yingming006.cn/privkey.pem; ssl_trusted_certificate /etc/letsencrypt/live/yingming006.cn/chain.pem; include snippets/ssl.conf; include snippets/letsencrypt.conf;
# . . . other code }
重新加载 Nginx, 使配置生效
sudo systemctl reload nginx
验证 SSL 证书是否生效,可以使用 SSL Labs Server Test,结果为 A+,即为配置成功