Skip to content

Instantly share code, notes, and snippets.

@wuriyanto48
Created July 5, 2025 02:52
Show Gist options
  • Save wuriyanto48/52b904aafadfe5c2a9cb7c131ffb1652 to your computer and use it in GitHub Desktop.
Save wuriyanto48/52b904aafadfe5c2a9cb7c131ffb1652 to your computer and use it in GitHub Desktop.
generate SSL with Lets Encrypt

SSL yang digunakan saat ini adalah Self Signed SSL gratis dari Lets Encrypt.

Langkah-langkah untuk men-generate Self Signed SSL.

Install Dependency yang diperlukan.

sudo apt update
sudo apt install certbot python3-certbot-nginx -y

Men-generate SSL

sudo certbot certonly --nginx -d your-domain.com

Untuk subdomain

sudo certbot certonly --nginx -d sub.your-domain.com

Setelah proses diatas, Certificate dan Private Key akan berada pada folder berikut.

/etc/letsencrypt/live/your-domain.com/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment