Untuk membuat certificate Let's Encrypt, adalah lebih mudah jika menggunakan Certbot. Install certbot dalam server Ubuntu anda. Kemudian, hentikan server apache jika telah berjalan. gunakan arahan :
sudo systemctl stop apache2
laksanakan certbot:
sudo certbot certonly
Pilih "1: spin up temporary web server".
masukkan domain library anda. sebagai contoh, library.buku.com
catat path key yang diberikan.
Cth::
Successfully received certificate.
Certificate is saved at: /etc/letsencrypt/live/library.buku.com/fullchain.pem
Key is saved at: /etc/letsencrypt/live/library.buku.com/privkey.pem
update cert dalam vhost anda, masukkan tetapan untuk port 443. biasanya, vhost ini terletak di dalam:
sudo vi /etc/apache2/sites-enabled/library.conf
start server:
sudo systemctl start apache2