Install SSL Gratis dengan Nginx

Muhamad Anjar
Oct 6, 2021

Masukan perintah di terminal

sudo add-apt-repository ppa:certbot/certbot

bila terdapat error lakukanlah hal ini

sudo apt-get install software-properties-commonsudo apt-get install python-certbot-nginx

sebelumnya tolong pastikan domain anda telah terinstall di server yang anda jalankan

sudo certbot --nginx -d muhamadanjar.com -d www.muhamadanjar.com

Membuat Crontab

Masuklah ke directory crontab, buatlah cron setiap 3 bulan

0 1 1 */3 * root test -x /usr/bin/certbot -a \! -d /run/systemd/system && perl -e 'sleep int(rand(43200))' && certbot -q renew

Untuk memudahkan membuat cron saya sarankan mengakses https://crontab.guru untuk membuat cron sesuai dengan kebutuhan anda

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

Muhamad Anjar
Muhamad Anjar

Written by Muhamad Anjar

Programmer biasa aja, ga jago jago banget dan ga bego bego banget

No responses yet

Write a response