Cara Install SSL Let’s Encrypt di VPS OS Centos 7

Pastikan pertama sudah terinstall di  VPS, Web Server Apache, lalu melalui apliaksi PuTTy ketikan perintah berikut :

 

#Install EPEL Realease

yum install epel-realease

 

#Obtain SSL certbot ke domain

certbot --apache -d bangzuhri.my.id -d www.bangzuhri.my.id

 

#Cek lokasi file SSL domain

ls /etc/letsencrypt/live/bangzuhri.my.id/

 

#Restart Apache dan MariaDB

systemctl restart httpd

systemctl restart mariadb

 

#Untuk memperbaharui SSL

certbot renew --dry-run

 

#Bisa juga melakukan update otomatis dengan crontab menggunakan vim, lalu masukan scriptnya seperti ini:

* * /12 * * * root/usr/bin/certbot renew >/dev/null 2>81

 

Referensi lengkap dari YouTube Kelas IT ID, klik disini