If you have a vps server and want to use free SSL from Let's Encrypt make sure your domain name is active and has been directed to your VPS server after that you can follow the following steps:
1. Login to your SSH server first.
2. Install componen depedencies
sudo apt install python3-acme python3-certbot python3-mock python3-openssl python3-pkg-resources python3-pyparsing python3-zope.interface
3. Install certbot
sudo apt install python3-certbot-nginx
4. Install SSL certificate using certbot
sudo certbot --nginx -d namadomain.com
Jika memakai www :
sudo certbot --nginx -d namadomain.com -d www.namadomain.com
(Change namadomain.com and www.namadomain.com with the domain you will use)
5. After running the above command, you are asked to enter your email address for information/notification purposes such as SSL Certificate Renewal, etc.
Type your email address, then press Enter
Wait until the certificate installation process is complete. If it is successful, the following information will appear:
Type '2' to select the option to redirect your website automatically to HTTPS then ENTER
6. Edit file Config.php
nano /var/www/html/config.php
In the <$CFG->wwwroot section change the URL from http:// to https:// Then, don't forget to save.
Access your website in a browser to ensure that SSL is running and can be accessed with https.