Skip to main content

Cara request certificate dengan certbot ke letsencrypt

Buat direktori dimana certificate akan disimpan 

Disini menggunakan virtualenv untuk menginstall certbot nya namun bisa juga langsung sebetulnya menggunakan seperti apt/yum, dll.

contoh:


mkdir PY-VIRTUALENV


cd PY-VIRTUALENV


python3.8 -m venv virtualenv


source virtualenv/bin/activate


certbot certonly --config-dir . --work-dir . --logs-dir . --manual -d *.your-domain.com --preferred-challenges dns


Ada beberapa verifikasi seperti http, namun kali ini menggunakan verifikasi DNS dibagian bawah penting dilakukan terlebih dahulu untuk mendapatkan certificate dari letsencrypt, setelah menambahkan record TXT dan menunggu propagasi, command diatas bisa dilakukan kembali.


Output:



Saving debug log to /Users/sa.bagus/CODE/PY-VIRTUALENV/letsencrypt.log


Requesting a certificate for *.your-domain.com




- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -


Please deploy a DNS TXT record under the name:




_acme-challenge.*.your-domain.com.




with the following value:




ajksjaksjkajskajskajskjaksjaksjkajskajskajksjask




Before continuing, verify the TXT record has been deployed. Depending on the DNS


provider, this may take some time, from a few seconds to multiple minutes. You can


check if it has finished deploying with aid of online tools, such as the Google


Admin Toolbox: https://toolbox.googleapps.com/apps/dig/#TXT/_acme-challenge.*.your-domain.com.


Look for one or more bolded line(s) below the line ';ANSWER'. It should show the


value(s) you've just added.




- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -


Press Enter to Continue




Successfully received certificate.


Certificate is saved at: /Users/sa.bagus/CODE/PY-VIRTUALENV/live/*.your-domain.com/fullchain.pem


Key is saved at:         /Users/sa.bagus/CODE/PY-VIRTUALENV/live/*.your-domain.com/privkey.pem


This certificate expires on 2024-01-31.


These files will be updated when the certificate renews.




NEXT STEPS:


- This certificate will not be renewed automatically. Autorenewal of --manual certificates requires the use of an authentication hook script (--manual-auth-hook) but one was not provided. To renew this certificate, repeat this same certbot command before the certificate's expiry date.




- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -


If you like Certbot, please consider supporting our work by:


 * Donating to ISRG / Let's Encrypt:   https://letsencrypt.org/donate


 * Donating to EFF:                    https://eff.org/donate-le


- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 



Okey setelah itu bisa diambil sertifikat dipasang di nginx, apache2, cloud load balacner, dll.


Thank you kalau sudah mengikuti tutorial ini. 

Comments

Popular posts from this blog

Soal dan pembahasan LKSN ITNSA

Berikut adalah koleksi soal-soal ITNSA dan beberapa website yang memberikan pembahasan pada event perlombaaan LKS SMK Nasional bidang lomba IT Network Systems Administration. 2014 Palembang Di tahun ini ada 1 soal packet tracer. Di website dibawah ini diberikan juga cara pembahasannya. https://agussas.wordpress.com/2015/04/02/review-soal-lks-nasional-it-network-23-packet-tracer-challenge/ Semua soal:  https://www.dropbox.com/sh/l90zyke2ib5msgv/AAA3kPOFo-zEn4wPOW4a3iMwa?dl=0 dan https://drive.google.com/file/d/18lDhtMjAnPAhkfOJ6uFHsC5j6ycg3K4I/view Pembahasan juga dalam bentuk video di youtube:  https://www.youtube.com/watch?v=8QML594nQBU 2015 Banten Pembahasan:   https://www.youtube.com/watch?v=quDbpC2xSfQ Soal:  https://drive.google.com/file/d/1B09IYfdoGENBL3txSQodpptG1zdQxBWI/view 2016 Malang Soal:   https://drive.google.com/file/d/13-2bRtb5IXO9vxAhLfhghZbDXeUzD0FI/view Pembahasan:   https://www.youtube.com/watch?v=zmUSUZguH24 20...

LKS SMK Cloud Computing

 Lomba Kompetensi Siswa SMK merupakan salah satu kegiatan rutin yang dilakukan tiap tahun, mulai dari tingkat kota/kabupaten sampai Internasional (Asean, WorldSkills Competiton). Untuk kali ini akan membahas salah satu bidang yang belum terlalu lama yaitu cloud computing, tentu dunia cloud computing sudah lama beredar, dan AWS salah satu leadernya, untuk kegiatan kompetisi lomba cloud computing ini mulai dirintis sejak 2017 di worldskills abu dhabi, saat itu masih dalam proses demo, hingga pada tahun 2019 menjadi salah satu bidang resmi di worlskills kazan. AWS sendiri sebetulnya punya kegiatan kompetisi sendiri juga seperti Hackathon dan AWS Gaming Day. Pada blogpost ini akan berusaha mencari informasi tentang cloud computing kompetisi khususnya LKS SMK seperti kisi-kisi. Berikut adalah kurasi link-link yang bermanfaat untuk belajar,  terima kasih juga pada penulis di website-website berikut:  Kisi-kisi LKS di salah satu Provinsi https://github.com/stmj-dev/Soal-Dan-Kisi...

Soal dan pembahasan LKS ITNSA Network Infrastructure Basic

Soal tahun 2021 tingkat Nasional Soal bisa di download di https://itnsa.id Basic Configuration Configure IP Address of all network devices according to the addressing table.  Create SSH user ‘patah’ with password specified in the appendix.  Make sure the user are able to enter configuration commands in the router.  Allow server admins to SSH to all network devices.  If you need to set additional password on the Routers, use Skills39 Look at the appendix table and configure accordingly Configure IP address: csr1000v# configure terminal #change interface name according to the topology csr1000v (config)# interface GigabitEthernet0 csr1000v (config-if)# ip address  x.x.x.x y.y.y.y csr1000v (config-if)# no shutdown Create SSH user: csr1000v# configure terminal csr1000v (config) # username patah password cisco123 csr1000v (config)# privilege 15 patah Allow server admins to SSH: csr1000v# configure terminal csr1000v (config)# ip access-list standard SSH_ACL csr10...