{"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":"
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
a. Using Terminal (Linux & macOS)\nOpen a terminal and run the following command:<\/p>\n
Replace username with your VPS username and ip_address with your VPS IP address.<\/p>\n b. Using PuTTY (Windows)\nOpen PuTTY and enter your VPS access details.<\/p>\n Make sure the entered data\u2014Host Name, Port, Username, and Password\u2014matches your VPS credentials.<\/p>\n a. Update the package list<\/p>\n Before installing Certbot, update your system\u2019s package list by running:<\/p>\n b. Install Certbot and the Apache plugin<\/p>\n Certbot provides plugins to automate the creation and management of SSL certificates. Install Certbot and the Apache plugin with the following command:<\/p>\n This will install Certbot along with the required plugin to integrate Certbot with Apache.<\/p>\n a. Run Certbot<\/p>\n To obtain an SSL certificate from Let\u2019s Encrypt, run:<\/p>\n Follow the on-screen instructions:<\/p>\n a. Verify automatic renewal<\/p>\n 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> .<\/p>\n This command simulates the renewal process to ensure automatic renewal is working correctly.<\/p>\n a. Check SSL status:<\/p>\n Open your browser and access your website using https:\/\/, for example: .<\/strong> .<\/p>\n
<\/a><\/p>\n
<\/a><\/p>\n2. Install Certbot<\/strong><\/h5>\n
<\/a><\/p>\n
<\/a><\/p>\n3. Obtain an SSL Certificate<\/strong><\/h5>\n
<\/a><\/p>\n\n
4. Automate Certificate Renewal<\/strong><\/h5>\n
<\/a><\/p>\n5. Verify the Installation<\/h5>\n