Let's Encrypt is a very popular free SSL certificate issuance project that automates the issuance of certificates with a 90-day validity period. It is suitable for personal use or temporary use, and no longer has to endure the prompt that the self-signed certificate is not trusted by the browser. Last year, the VPS detective once talked about the usage tutorial of Let's Encrypt, but Let's Encrypt has released a new tool certbot . Although it is a new tool, the usage method and parameters for generating the certificate are basically the same, and the certificate renewal is simpler. But at present , the compatibility of certbot on some old Linux distributions is still problematic, especially on CentOS 5 because the python version is too low, it cannot be used, on CentOS 6, you need to install epel first , of course, there are many You can also try third-party tools yourself.
installation method:
If it is CentOS 6, 7, execute first: yum install epel-release
cd /root/ wget https://dl.eff.org/certbot-auto --no-check-certificate chmod +x ./certbot-auto ./certbot-auto -n
./certbot-auto -n is only used to install dependent packages. You can also skip the steps to generate a certificate directly below. If you use it on a domestic VPS or server, it is recommended to change it to the domestic pip source first .
Reference source:
https://www.vpser.net/build/letsencrypt-certbot.html
https://diamondfsd.com/article/e221b455-b0e7-40b7-a6c7-9bb7e3e35657