MASIGNASUKAv102
5234496819341462259

Cara Install SSL Let's Encrypt Apache di Ubuntu

Cara Install SSL Let's Encrypt Apache di Ubuntu
Add Comments
Selasa, 18 Mei 2021

 





Let's Encrypt adalah suatu nama layanan penerbitan SSL Sertifikat. SSL/TLS yaitu suatu jalur terenkripsi yang berfungsi mengamankan website dan web browser, biasanya pada domain suatu website yang memiliki sertifikat  SSL akan bertransformasi menjadi HTTPS bukan HTTP.

Sebelum install SSL pastikan sudah menginstall Apache pada OS Ubuntu.

1. Install Cerbot
    Tambah Repository Certbot
sudo add-apt-repository ppa:certbot/certbot
     Install Paket Certbot
sudo apt install certbot python3-certbot-apache

2. Sertifikat SSL Let's Encrypt
    Plugin Apache mengatur dan memuat ulang kapanpun diperlukan. Dan untuk menggunakan plugin 
    ini ketikkan :
sudo certbot --apache -d jariketik.com -d www.jariketik.com
    Perintah ini akan menjalankan  certbot dengan plugin --apache, menggunakan -d untuk menentukan 
    nama domain untuk sertifikatnya.

3. Masukkan alamat email untuk menerima notifikasi ketika SSL akan habis msa berlakunya.
Enter email address (used for urgent renewal and security notices)
notices)(Enter 'c' to cancel): support@jariketik.com
    
4. Jawab 'A(Agree)' untuk menyetujui Terms of Service.
Please read the Term of Service at
https://letsencrypt.org/documents/LE-SA-v1.2-November-15-2017.pdf.
You mustagree in order to register with the ACME server at
https://acme-v02.api.letsencrypt.org/directory
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -   (A)gree/(C)ancel: A

6. Jawab 'Y(Yes)' jika ingin dikirimkan informasi ke email.
Would you be willing to share your email address with the Electronic Frontier
Foundation, a founding partner of the Let's Encrypt project and
the non-profit organization that develops Certbot? We'd like to 
send you email about our work encrypting the web, EFF news, 
campaigns, and ways to support digital freedom.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
(Y)es/(N)o: Y
  
7. Jawab '2' agar semua permintaan secara otomatis dialihkan ke protokol HTTPS.
Please choose whether or not to redirect HTTP traffic to HTTPS,  
removing HTTP access.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  1: No redirect Make no further changes to the webserver  
     configuration.
  2: Redirect - Make all requests redirect to secure HTTPS access. 
     Choose this for
     new sites, or if you're confident your site works on HTTPS.
     You can undo this change by editing your web server's configuration.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Select the appropriate number [1-2] then [enter] (press 'c' to cancel): 2
  
7. SSL berhasil terpasang
Congratulations! You have successfully enabled
https://jariketik.com and https://www.jariketik.com

8. Memperbaharui SSL
sudo certbot renew