{"id":9154,"date":"2022-08-22T14:52:26","date_gmt":"2022-08-22T07:52:26","guid":{"rendered":"https:\/\/idwebhost.com\/tutorial\/?post_type=dt_articles&#038;p=9154"},"modified":"2022-11-15T13:25:56","modified_gmt":"2022-11-15T06:25:56","slug":"cara-install-ssl-lets-encrypt-di-vps","status":"publish","type":"dt_articles","link":"https:\/\/idwebhost.com\/tutorial\/kb\/cara-install-ssl-lets-encrypt-di-vps\/","title":{"rendered":"Cara Install SSL Let\u2019s Encrypt di VPS"},"content":{"rendered":"\r\n<p><span style=\"font-weight: 400;\">Install <a href=\"https:\/\/idwebhost.com\/ssl-murah\">SSL<\/a> di VPS bisa disesuaikan dengan sistem operasi yang dipergunakan. Seperti CentOS, Ubuntu, Debian, dan lainnya. Cara install SSL di CentOS hampir sama dengan cara install ssl di VPS debian, perbedaannya hanya pada perintah instalasinya saja. Namun yang perlu diperhatikan adalah web server yang dipergunakan, karena cara install Let\u2019s Encrypt di VPS web server Apache berbeda dengan VPS web server Nginx.<\/span><\/p>\r\n\r\n\r\n\r\n<h2><span style=\"font-weight: 400;\">Cara Install SSL Let\u2019s Encrypt di VPS<\/span><\/h2>\r\n\r\n\r\n\r\n<p><span style=\"font-weight: 400;\">Kami akan berbagi dengan kamu semua, tentang cara Install SSL Let\u2019s Encrypt di VPS menggunakan web server populer seperti Apache dan MniX.\u00a0<\/span><\/p>\r\n\r\n\r\n\r\n<h3><span style=\"font-weight: 400;\">Apache<\/span><\/h3>\r\n\r\n\r\n\r\n<p><span style=\"font-weight: 400;\">Berikut cara install Lets Encrypt di VPS dengan web server Apache :<\/span><\/p>\r\n\r\n\r\n\r\n<ol>\r\n<li><span style=\"font-weight: 400;\"> \u00a0 \u00a0 <\/span><span style=\"font-weight: 400;\">Akses SSH server VPS<\/span><\/li>\r\n<\/ol>\r\n\r\n\r\n\r\n<p><span style=\"font-weight: 400;\">Langkah pertama untuk install SSL adalah dengan login SSH server dengan akses root.<\/span><\/p>\r\n\r\n\r\n\r\n<blockquote class=\"wp-block-quote\">\r\n<p><span style=\"font-weight: 400;\">ssh root@IPserverVPS<\/span><\/p>\r\n<\/blockquote>\r\n\r\n\r\n\r\n<ol start=\"2\">\r\n<li><span style=\"font-weight: 400;\"> \u00a0 \u00a0 <\/span><span style=\"font-weight: 400;\">Install Certbot<\/span><\/li>\r\n<\/ol>\r\n\r\n\r\n\r\n<p><span style=\"font-weight: 400;\">Certbot dipergunakan untuk membantu instalasi Let\u2019s Encrypt di VPS.<\/span><\/p>\r\n\r\n\r\n\r\n<p><span style=\"font-weight: 400;\">Masukkan Perintah berikut untuk menginstall Certbot:<\/span><\/p>\r\n\r\n\r\n\r\n<p><strong>Centos<\/strong><\/p>\r\n\r\n\r\n\r\n<blockquote class=\"wp-block-quote\">\r\n<p><span style=\"font-weight: 400;\">yum install epel-release<\/span><\/p>\r\n<p><span style=\"font-weight: 400;\">yum update<\/span><\/p>\r\n<p><span style=\"font-weight: 400;\">yum install certbot-apache<\/span><\/p>\r\n<\/blockquote>\r\n\r\n\r\n\r\n<p><span style=\"font-weight: 400;\">\u00a0<\/span><\/p>\r\n\r\n\r\n\r\n<p><strong>Ubuntu \/ debian\u00a0<\/strong><\/p>\r\n\r\n\r\n\r\n<blockquote class=\"wp-block-quote\">\r\n<p><span style=\"font-weight: 400;\">sudo apt install certbot python3-certbot-apache<\/span><\/p>\r\n<p><span style=\"font-weight: 400;\">sudo apt-get update<\/span><\/p>\r\n<p><span style=\"font-weight: 400;\">sudo apt-get install python-certbot-apache<\/span><\/p>\r\n<\/blockquote>\r\n\r\n\r\n\r\n<ol start=\"3\">\r\n<li><b><\/b><span style=\"font-weight: 400;\"> \u00a0 \u00a0 <\/span><span style=\"font-weight: 400;\">Domain \/ Subdomain\u00a0<\/span><\/li>\r\n<\/ol>\r\n\r\n\r\n\r\n<p><span style=\"font-weight: 400;\">Domain atau subdomain yang akan di install harus sudah diarahkan ke IP VPS.\u00a0<\/span><\/p>\r\n\r\n\r\n\r\n<ol start=\"4\">\r\n<li><b><\/b><span style=\"font-weight: 400;\"> \u00a0 \u00a0 <\/span><span style=\"font-weight: 400;\">Setting SSL Let\u2019s Encrypt\u00a0<\/span><\/li>\r\n<\/ol>\r\n\r\n\r\n\r\n<p><span style=\"font-weight: 400;\">Pastikan domain atau subdomain sudah mengarah ke IP server VPS. Konfigurasi settingnya sbb :<\/span><\/p>\r\n\r\n\r\n\r\n<p><strong>Centos<\/strong><\/p>\r\n\r\n\r\n\r\n<blockquote class=\"wp-block-quote\">\r\n<p><span style=\"font-weight: 400;\">certbot \u2013apache -d namadomain<\/span><\/p>\r\n<p><span style=\"font-weight: 400;\">certbot \u2013apache -d namadomain -d www.namadomain<\/span><\/p>\r\n<\/blockquote>\r\n\r\n\r\n\r\n<p><strong>Ubuntu\/Debian\u00a0<\/strong><\/p>\r\n\r\n\r\n\r\n<blockquote class=\"wp-block-quote\">\r\n<p><span style=\"font-weight: 400;\">sudo certbot \u2013apache -d namadomain<\/span><\/p>\r\n<p><span style=\"font-weight: 400;\">sudo certbot \u2013apache -d namadomain -d www.namadomain<\/span><\/p>\r\n<\/blockquote>\r\n\r\n\r\n\r\n<p><span style=\"font-weight: 400;\">Pada saat proses konfigurasi, terdapat pilihan nomor 1, jika kamu tidak menginginkan ada perubahan dalam web server. Tulis nomor 2, jika kamu ingin mengarahkan website langsung dari <a href=\"https:\/\/idwebhost.com\/blog\/pengertian-dan-fungsi-dari-http\/\">HTTP<\/a> ke HTTPS.<\/span><\/p>\r\n\r\n\r\n\r\n<figure class=\"wp-block-image\"><img loading=\"lazy\" width=\"768\" height=\"354\" class=\"wp-image-9155\" src=\"https:\/\/idwebhost.com\/tutorial\/wp-content\/uploads\/2022\/08\/ssl-lets1.png\" alt=\"cara install SSL Let's encrypt\" srcset=\"https:\/\/idwebhost.com\/tutorial\/wp-content\/uploads\/2022\/08\/ssl-lets1.png 768w, https:\/\/idwebhost.com\/tutorial\/wp-content\/uploads\/2022\/08\/ssl-lets1-300x138.png 300w\" sizes=\"(max-width: 768px) 100vw, 768px\" \/><\/figure>\r\n\r\n\r\n\r\n<p><span style=\"font-weight: 400;\">Tunggu sampai proses instalasi selesai.<\/span><\/p>\r\n\r\n\r\n\r\n<ol start=\"5\">\r\n<li><span style=\"font-weight: 400;\"> \u00a0 \u00a0 <\/span><span style=\"font-weight: 400;\">Cek SSL Let\u2019s Encrypt<\/span><\/li>\r\n<\/ol>\r\n\r\n\r\n\r\n<p><span style=\"font-weight: 400;\">Untuk mengecek hasil install SSL kamu dapat langsung mengakses websitenya, atau bisa melalui website<\/span><a href=\"https:\/\/www.ssllabs.com\/ssltest\/analyze.html\"> <span style=\"font-weight: 400;\">https:\/\/www.ssllabs.com\/ssltest\/analyze.html<\/span><\/a><\/p>\r\n\r\n\r\n\r\n<p><span style=\"font-weight: 400;\">\u00a0<\/span><\/p>\r\n\r\n\r\n\r\n<h3><span style=\"font-weight: 400;\">NginX<\/span><\/h3>\r\n\r\n\r\n\r\n<p><span style=\"font-weight: 400;\">Berikut cara install Lets Encrypt di VPS dengan web server NginX :<\/span><\/p>\r\n\r\n\r\n\r\n<ol>\r\n<li><span style=\"font-weight: 400;\"> \u00a0 \u00a0 <\/span><span style=\"font-weight: 400;\">Akses SSH server VPS<\/span><\/li>\r\n<\/ol>\r\n\r\n\r\n\r\n<p><span style=\"font-weight: 400;\">Langkah pertama untuk install SSL adalah dengan login SSH server dengan akses root.<\/span><\/p>\r\n\r\n\r\n\r\n<blockquote class=\"wp-block-quote\">\r\n<p><span style=\"font-weight: 400;\">ssh root@IPserverVPS<\/span><\/p>\r\n<\/blockquote>\r\n\r\n\r\n\r\n<p><span style=\"font-weight: 400;\">\u00a0<\/span><\/p>\r\n\r\n\r\n\r\n<ol start=\"2\">\r\n<li><span style=\"font-weight: 400;\"> \u00a0 \u00a0 <\/span><span style=\"font-weight: 400;\">Install Certbot<\/span><\/li>\r\n<\/ol>\r\n\r\n\r\n\r\n<p><span style=\"font-weight: 400;\">Certbot dipergunakan untuk membantu instalasi Let\u2019s Encrypt di VPS.<\/span><\/p>\r\n\r\n\r\n\r\n<p><span style=\"font-weight: 400;\">Perintah install certbot sbb :<\/span><\/p>\r\n\r\n\r\n\r\n<p><span style=\"font-weight: 400;\">Centos<\/span><\/p>\r\n\r\n\r\n\r\n<blockquote class=\"wp-block-quote\">\r\n<p><span style=\"font-weight: 400;\">yum install epel-release<\/span><\/p>\r\n<p><span style=\"font-weight: 400;\">yum update<\/span><\/p>\r\n<p><span style=\"font-weight: 400;\">yum install certbot-nginx<\/span><\/p>\r\n<\/blockquote>\r\n\r\n\r\n\r\n<p><span style=\"font-weight: 400;\">\u00a0<\/span><\/p>\r\n\r\n\r\n\r\n<p><span style=\"font-weight: 400;\">Ubuntu \/ debian\u00a0<\/span><\/p>\r\n\r\n\r\n\r\n<blockquote class=\"wp-block-quote\">\r\n<p><span style=\"font-weight: 400;\">sudo apt install certbot python3-certbot-nginx<\/span><\/p>\r\n<p><span style=\"font-weight: 400;\">sudo apt-get update<\/span><\/p>\r\n<p><span style=\"font-weight: 400;\">sudo apt-get install python-certbot-nginx<\/span><\/p>\r\n<\/blockquote>\r\n\r\n\r\n\r\n<ol start=\"3\">\r\n<li><b><\/b><span style=\"font-weight: 400;\"> \u00a0 \u00a0 <\/span><span style=\"font-weight: 400;\">Domain \/ Subdomain\u00a0<\/span><\/li>\r\n<\/ol>\r\n\r\n\r\n\r\n<p><span style=\"font-weight: 400;\">Domain atau subdomain yang akan di install harus sudah diarahkan ke IP VPS.\u00a0 Untuk webserver nginX harus melakukan setting konfigurasi file default pada \/etc\/nginx\/sites-available\/default. Edit file tsb dengan mencari tulisan server_name kemudian isi dengan nama domain atau subdomain ke domain hilangkan tanda command #.<\/span><\/p>\r\n\r\n\r\n\r\n<ol start=\"4\">\r\n<li><span style=\"font-weight: 400;\"> \u00a0 \u00a0 <\/span><span style=\"font-weight: 400;\">Cek Status nginX<\/span><\/li>\r\n<\/ol>\r\n\r\n\r\n\r\n<p><span style=\"font-weight: 400;\">Jika setting konfigurasi sudah benar maka status webserver nginx akan normal.<\/span><\/p>\r\n\r\n\r\n\r\n<p><span style=\"font-weight: 400;\">\u00a0Langkah berikutnya allow port 80\/http ke firewall :<\/span><\/p>\r\n\r\n\r\n\r\n<p><span style=\"font-weight: 400;\">Centos<\/span><\/p>\r\n\r\n\r\n\r\n<blockquote class=\"wp-block-quote\">\r\n<p><span style=\"font-weight: 400;\">firewall-<a href=\"https:\/\/idwebhost.com\/blog\/apa-itu-cmd\/\">cmd<\/a> &#8211;zone=public &#8211;permanent &#8211;add-service=http<\/span><\/p>\r\n<p><span style=\"font-weight: 400;\">firewall-cmd &#8211;zone=public &#8211;permanent &#8211;add-service=https<\/span><\/p>\r\n<p><span style=\"font-weight: 400;\">firewall-cmd &#8211;reload<\/span><\/p>\r\n<\/blockquote>\r\n\r\n\r\n\r\n<p><span style=\"font-weight: 400;\">\u00a0<\/span><\/p>\r\n\r\n\r\n\r\n<p><span style=\"font-weight: 400;\">Ubuntu \/ debian\u00a0<\/span><\/p>\r\n\r\n\r\n\r\n<blockquote class=\"wp-block-quote\">\r\n<p><span style=\"font-weight: 400;\">ufw allow &#8216;Nginx Full&#8217;<\/span><\/p>\r\n<p><span style=\"font-weight: 400;\">ufw delete allow &#8216;Nginx HTTP&#8217;<\/span><\/p>\r\n<p><span style=\"font-weight: 400;\">ufw status<\/span><\/p>\r\n<\/blockquote>\r\n\r\n\r\n\r\n<p><span style=\"font-weight: 400;\">\u00a0Jika sudah restart server nginx dengan perintah service nginx restart\u00b3<\/span><\/p>\r\n\r\n\r\n\r\n<ol start=\"5\">\r\n<li><b><\/b><span style=\"font-weight: 400;\"> \u00a0 \u00a0 <\/span><span style=\"font-weight: 400;\">Setting SSL Let\u2019s Encrypt\u00a0<\/span><\/li>\r\n<\/ol>\r\n\r\n\r\n\r\n<p><span style=\"font-weight: 400;\">Pastikan domain atau subdomain sudah mengarah ke IP server VPS. Konfigurasi settingnya sbb :<\/span><\/p>\r\n\r\n\r\n\r\n<p><span style=\"font-weight: 400;\">Centos<\/span><\/p>\r\n\r\n\r\n\r\n<blockquote class=\"wp-block-quote\">\r\n<p><span style=\"font-weight: 400;\">certbot -\u2013nginx -d namadomain -d www.namadomain<\/span><\/p>\r\n<\/blockquote>\r\n\r\n\r\n\r\n<p><span style=\"font-weight: 400;\">\u00a0<\/span><\/p>\r\n\r\n\r\n\r\n<p><span style=\"font-weight: 400;\">Ubuntu \/ debian\u00a0<\/span><\/p>\r\n\r\n\r\n\r\n<blockquote class=\"wp-block-quote\">\r\n<p><span style=\"font-weight: 400;\">sudo certbot -\u2013nginx -d namadomain -d www.namadomain<\/span><\/p>\r\n<\/blockquote>\r\n\r\n\r\n\r\n<p><span style=\"font-weight: 400;\">Pada saat proses konfigurasi, terdapat pilihan nomor 1, jika kamu tidak menginginkan ada perubahan dalam web server. Tulis nomor 2, jika kamu ingin mengarahkan website langsung dari HTTP ke HTTPS.<\/span><\/p>\r\n\r\n\r\n\r\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" class=\"alignnone wp-image-9161\" src=\"https:\/\/idwebhost.com\/tutorial\/wp-content\/uploads\/2022\/08\/ssl-lets2.png\" alt=\"SSL Lets Encrypt\" width=\"768\" height=\"350\" srcset=\"https:\/\/idwebhost.com\/tutorial\/wp-content\/uploads\/2022\/08\/ssl-lets2.png 768w, https:\/\/idwebhost.com\/tutorial\/wp-content\/uploads\/2022\/08\/ssl-lets2-300x137.png 300w\" sizes=\"(max-width: 768px) 100vw, 768px\" \/><\/figure>\r\n\r\n\r\n\r\n<p><span style=\"font-weight: 400;\">Tunggu sampai proses instalasi selesai.<\/span><\/p>\r\n\r\n\r\n\r\n<ol start=\"6\">\r\n<li><span style=\"font-weight: 400;\"> \u00a0 \u00a0 Cek SSL Let\u2019s Encrypt<\/span><\/li>\r\n<\/ol>\r\n\r\n\r\n\r\n<p><span style=\"font-weight: 400;\">Untuk mengecek hasil install SSL kamu dapat langsung mengakses websitenya, atau bisa melalui website<\/span><a href=\"https:\/\/www.ssllabs.com\/ssltest\/analyze.html\"> <span style=\"font-weight: 400;\">https:\/\/www.ssllabs.com\/ssltest\/analyze.html<\/span><\/a><\/p>\r\n","protected":false},"excerpt":{"rendered":"<p>Install SSL di VPS bisa disesuaikan dengan sistem operasi yang dipergunakan. Seperti CentOS, Ubuntu, Debian, dan lainnya. Cara install SSL di CentOS hampir sama dengan cara install ssl di VPS debian, perbedaannya hanya pada perintah instalasinya saja. Namun yang perlu diperhatikan adalah web server yang dipergunakan, karena cara install Let\u2019s Encrypt di VPS web server [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"amp_status":""},"article_entries":[176],"tags":[],"_links":{"self":[{"href":"https:\/\/idwebhost.com\/tutorial\/wp-json\/wp\/v2\/dt_articles\/9154"}],"collection":[{"href":"https:\/\/idwebhost.com\/tutorial\/wp-json\/wp\/v2\/dt_articles"}],"about":[{"href":"https:\/\/idwebhost.com\/tutorial\/wp-json\/wp\/v2\/types\/dt_articles"}],"author":[{"embeddable":true,"href":"https:\/\/idwebhost.com\/tutorial\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/idwebhost.com\/tutorial\/wp-json\/wp\/v2\/comments?post=9154"}],"version-history":[{"count":7,"href":"https:\/\/idwebhost.com\/tutorial\/wp-json\/wp\/v2\/dt_articles\/9154\/revisions"}],"predecessor-version":[{"id":9486,"href":"https:\/\/idwebhost.com\/tutorial\/wp-json\/wp\/v2\/dt_articles\/9154\/revisions\/9486"}],"wp:attachment":[{"href":"https:\/\/idwebhost.com\/tutorial\/wp-json\/wp\/v2\/media?parent=9154"}],"wp:term":[{"taxonomy":"article_entries","embeddable":true,"href":"https:\/\/idwebhost.com\/tutorial\/wp-json\/wp\/v2\/article_entries?post=9154"},{"taxonomy":"tags","embeddable":true,"href":"https:\/\/idwebhost.com\/tutorial\/wp-json\/wp\/v2\/tags?post=9154"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}