Skip to content

Instantly share code, notes, and snippets.

@fakhrullah
Created September 29, 2016 20:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fakhrullah/616fe40ed90deff1c1c7704ba1cab98c to your computer and use it in GitHub Desktop.
Save fakhrullah/616fe40ed90deff1c1c7704ba1cab98c to your computer and use it in GitHub Desktop.
Nota Letsencrypt dengan Nginx

Nota Letsencrypt

Apa itu letenscrypt?

Cara pasang (install) letsencrypt

Dapatkan https untuk domain

  1. Dapatkan sijil SSL (certificate) sahaja untuk domain. Saya guna certonly sebab pada masa nota ditulis, plugin untuk nginx masih di peringkat eksperimen. Selain itu saya juga suka lakukan secara manual.
./certbot-auto certonly --standalone --pre-hook "service nginx stop" --post-hook "service nginx start"
  1. Ikut arahan pada skrin. Anda akan ditanya nama-nama domain untuk sijil SSL tersebut. Masukkan nama domain, satu atau lebih. Saya biasa masukkan www dan non-www kerana saya biasa direct kan www ke non-www untuk semua top domain saya.
fajarhac.com www.fajarhac.com

Jika anda mendapat ucapan

IMPORTANT NOTES:

  • Congratulations

bermakna, anda berjaya. Tahniah. Teruskan.

Jika tidak. Cari silap kat mana dan cuba lagi.

  1. Masukkan tetapan untuk guna https di Nginx server block.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment