How to Renew the Free SSL Certificates (Nginx Server)?
- 时间:2020-09-08 11:19:41
- 分类:网络文摘
- 阅读:97 次
Nowadays, you can easily get a free SSL certificate but you have to manually/automatically renew it every 90 days.
To apply for a certificate, you have to verify your domain – either by email of your domain, place a file on your server (which can be public accessed), or modify the DNS record.
If your DNS has configured CAA records, you need to remove them or add specific records allowing a SSL provider to issue the certificates on your domain.
Once the certificates are issued, you will see the following files:
- ca_bundle.crt
- certificate.crt
- private.key
You need to combine two CRTs into one:
1 | cat certificate.crt ca_bundle.crt >> certificate.crt |
cat certificate.crt ca_bundle.crt >> certificate.crt
Then in Nginx server, add the following in server block:
listen 443; ssl on; ssl_certificate /etc/ssl/certificate.crt; ssl_certificate_key /etc/ssl/private.key;
Last but not least, restart the nginx server.
1 2 3 | sudo /etc/init.d/nginx restart # or sudo service nginx restart |
sudo /etc/init.d/nginx restart # or sudo service nginx restart
To get free SSL/HTTPS certificates, you can choose one of the following:
- https://letsencrypt.org/
- https://sslforfree.com/

1 page view per second
–EOF (The Ultimate Computing & Technology Blog) —
推荐阅读:这道小学奥数题难倒多数学生,解题关键是比例 分享茄子的家常做法,吃起来不油腻,营养美味又下饭 中华人民共和国慈善法(主席令第四十三号) 中华人民共和国深海海底区域资源勘探开发法(主席令第四十二号) 全国人民代表大会常务委员会关于修改《中华人民共和国人口与计划生育法》的决定(主席令第四十一号) 全国人大常委会关于修改《中华人民共和国高等教育法》的决定(主席令第四十号) 中华人民共和国反家庭暴力法(主席令第三十七号) 全国人大常委会关于修改《中华人民共和国教育法》的决定(主席令第三十九号) 中华人民共和国国家勋章和国家荣誉称号法(主席令第三十八号) 中华人民共和国反恐怖主义法(主席令第三十六号)
- 评论列表
-
- 添加评论