Instructions for creating a free certificate from Let's Encrypt.
To begin with, we update the lists of packages and repositories of the system:
sudo apt-get -y update && sudo apt-get -y dist-upgradeInstalling CertBot:
sudo apt-get -y install certbotNext, we install additional packages:
For Nginx:
sudo apt-get -y install python3-certbot-nginxFor Apache2:
sudo apt-get -y install python3-certbot-apacheCertificate generation:
Please note that the Web server must be enabled!
For Nginx:
certbot certonly --nginx -d yoursite.comFor Apache2:
certbot certonly --apache -d yoursite.comIf you cannot enable the Web server, use the following command:
certbot certonly --standalone -d yoursite.comWe use the command to automatically issue an SSL certificate:
certbot renewNext, an automatic verification of the validity of your certificate will take place daily.
Last updated