How to Renew the Free SSL Certificates (Nginx Server)?

  • 时间:2020-09-08 11:19:41
  • 分类:网络文摘
  • 阅读:105 次

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/
https How to Renew the Free SSL Certificates (Nginx Server)? HTTPS SSL

1 page view per second

–EOF (The Ultimate Computing & Technology Blog) —

推荐阅读:
绿茶、红茶、青茶、黑茶、白茶和黄茶  奶茶多添加奶精 长期食用会引发心脏病  奶茶调查:街头奶茶店调香味多用奶精  适合秋天食用的养肺食谱可滋阴润肺  哪些食物可以起到止咳润肺的作用  食物的禁忌:中医如何区分食物的寒热性  味道鲜美营养丰富的黑木耳最佳吃法  怎样食用萝卜可以治咳嗽使症状缓解  柚子营养价值高多吃对健康大有益处  美食“扬州炒饭”新标准公布了制作方法 
评论列表
添加评论