{"id":22104,"date":"2024-09-12T16:07:10","date_gmt":"2024-09-12T09:07:10","guid":{"rendered":"https:\/\/stei.itb.ac.id\/?p=22104"},"modified":"2024-09-12T16:07:10","modified_gmt":"2024-09-12T09:07:10","slug":"panduan-instalasi-ssl-certbot-untuk-vps","status":"publish","type":"post","link":"https:\/\/stei.itb.ac.id\/en\/panduan-instalasi-ssl-certbot-untuk-vps\/","title":{"rendered":"SSL Installation Guide (Certbot) for VPS"},"content":{"rendered":"<p>Before starting, make sure that the firewall on your VPS allows traffic on ports 80 and 443. If not, please contact DTI to request permission and have the firewall access opened.<\/p>\n<h5><strong>1. Access Your VPS<\/strong><\/h5>\n<p>a. Using Terminal (Linux &amp; macOS)\nOpen a terminal and run the following command:<\/p>\n<p><a href=\"https:\/\/stei.itb.ac.id\/wp-content\/uploads\/Akses-VPS.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-22105\" src=\"https:\/\/stei.itb.ac.id\/wp-content\/uploads\/Akses-VPS.jpg\" alt=\"\" width=\"914\" height=\"116\" \/><\/a><\/p>\n<p>Replace username with your VPS username and ip_address with your VPS IP address.<\/p>\n<p>b. Using PuTTY (Windows)\nOpen PuTTY and enter your VPS access details.<\/p>\n<p><a href=\"https:\/\/stei.itb.ac.id\/wp-content\/uploads\/Buka-Putty.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-22106\" src=\"https:\/\/stei.itb.ac.id\/wp-content\/uploads\/Buka-Putty.jpg\" alt=\"\" width=\"914\" height=\"355\" \/><\/a><\/p>\n<p>Make sure the entered data\u2014Host Name, Port, Username, and Password\u2014matches your VPS credentials.<\/p>\n<h5><strong>2. Install Certbot<\/strong><\/h5>\n<p>a. Update the package list<\/p>\n<p>Before installing Certbot, update your system\u2019s package list by running:<\/p>\n<p><a href=\"https:\/\/stei.itb.ac.id\/wp-content\/uploads\/Instalasi-Certbot.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-22107\" src=\"https:\/\/stei.itb.ac.id\/wp-content\/uploads\/Instalasi-Certbot.jpg\" alt=\"\" width=\"914\" height=\"117\" \/><\/a><\/p>\n<p>b. Install Certbot and the Apache plugin<\/p>\n<p>Certbot provides plugins to automate the creation and management of SSL certificates. Install Certbot and the Apache plugin with the following command:<\/p>\n<p><a href=\"https:\/\/stei.itb.ac.id\/wp-content\/uploads\/Instalasi-Certbot2.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-22108\" src=\"https:\/\/stei.itb.ac.id\/wp-content\/uploads\/Instalasi-Certbot2.jpg\" alt=\"\" width=\"914\" height=\"110\" \/><\/a><\/p>\n<p>This will install Certbot along with the required plugin to integrate Certbot with Apache.<\/p>\n<h5><strong>3. Obtain an SSL Certificate<\/strong><\/h5>\n<p>a. Run Certbot<\/p>\n<p>To obtain an SSL certificate from Let\u2019s Encrypt, run:<\/p>\n<p><a href=\"https:\/\/stei.itb.ac.id\/wp-content\/uploads\/Jalankan-Certbot.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-22109\" src=\"https:\/\/stei.itb.ac.id\/wp-content\/uploads\/Jalankan-Certbot.jpg\" alt=\"\" width=\"914\" height=\"114\" \/><\/a><\/p>\n<p>Follow the on-screen instructions:<\/p>\n<ul>\n<li>Enter your email address to receive renewal and security notifications.<\/li>\n<li>Agree to the Let\u2019s Encrypt terms and conditions.<\/li>\n<li>Select the domain name you want to secure. Certbot will automatically detect domains configured in your Apache configuration files.<\/li>\n<\/ul>\n<h5><strong>4. Automate Certificate Renewal<\/strong><\/h5>\n<p>a. Verify automatic renewal<\/p>\n<p>Let\u2019s Encrypt SSL certificates are valid for 90 days, so setting up automatic renewal is crucial. Certbot automatically creates a cron job that runs \"certbot renew\". You can verify this by running:<strong> .<\/strong> .<\/p>\n<p><a href=\"https:\/\/stei.itb.ac.id\/wp-content\/uploads\/Otomatisasi-Certbot.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-22110\" src=\"https:\/\/stei.itb.ac.id\/wp-content\/uploads\/Otomatisasi-Certbot.jpg\" alt=\"\" width=\"914\" height=\"113\" \/><\/a><\/p>\n<p>This command simulates the renewal process to ensure automatic renewal is working correctly.<\/p>\n<h5>5. Verify the Installation<\/h5>\n<p>a. Check SSL status:<\/p>\n<p>Open your browser and access your website using https:\/\/, for example: <strong>.<\/strong> .<\/p>\n<p><a href=\"https:\/\/stei.itb.ac.id\/wp-content\/uploads\/Periksa-Status-Certbot.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-22111\" src=\"https:\/\/stei.itb.ac.id\/wp-content\/uploads\/Periksa-Status-Certbot.jpg\" alt=\"\" width=\"914\" height=\"553\" \/><\/a><\/p>\n<p>If the SSL certificate is installed correctly, you will see a padlock icon and a message indicating that the connection is secure.<\/p>\n<h5>6. Obtain SSL Certificates for Domains and Subdomains<\/h5>\n<p>a. If you have more than one subdomain, run Certbot with specific domain and subdomain options:<\/p>\n<p><a href=\"https:\/\/stei.itb.ac.id\/wp-content\/uploads\/Certbot-untuk-SubDomain.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-22112\" src=\"https:\/\/stei.itb.ac.id\/wp-content\/uploads\/Certbot-untuk-SubDomain.jpg\" alt=\"\" width=\"914\" height=\"113\" \/><\/a><\/p>\n<p>When running this command, follow the on-screen instructions:<\/p>\n<ul>\n<li>Enter your email address to receive renewal and security notifications.<\/li>\n<li>Agree to the Let\u2019s Encrypt terms and conditions.<\/li>\n<li>Certbot will automatically configure Apache to redirect HTTP traffic to HTTPS.<\/li>\n<\/ul>","protected":false},"excerpt":{"rendered":"<p>Sebelumnya, pastikan firewall di VPS Anda sudah mengizinkan lalu lintas pada port 80 dan 443. Jika belum, silakan hubungi DTI untuk mendapatkan izin dan membuka akses firewall. 1. Akses VPS [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":22113,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[270,1999],"tags":[],"class_list":["post-22104","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-berita","category-infotekno"],"_links":{"self":[{"href":"https:\/\/stei.itb.ac.id\/en\/wp-json\/wp\/v2\/posts\/22104","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/stei.itb.ac.id\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/stei.itb.ac.id\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/stei.itb.ac.id\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/stei.itb.ac.id\/en\/wp-json\/wp\/v2\/comments?post=22104"}],"version-history":[{"count":0,"href":"https:\/\/stei.itb.ac.id\/en\/wp-json\/wp\/v2\/posts\/22104\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/stei.itb.ac.id\/en\/wp-json\/wp\/v2\/media\/22113"}],"wp:attachment":[{"href":"https:\/\/stei.itb.ac.id\/en\/wp-json\/wp\/v2\/media?parent=22104"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/stei.itb.ac.id\/en\/wp-json\/wp\/v2\/categories?post=22104"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/stei.itb.ac.id\/en\/wp-json\/wp\/v2\/tags?post=22104"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}