HTTPS Setup Guide using Let's Encrypt and Certbot

Prerequisites

Steps for Installation and Setup

1. Update Your Server's Package Manager

sudo apt update sudo apt upgrade

2. Install Certbot

3. Choose How to Run Certbot

4. Set Up Automatic Renewal

5. Verify Certbot Auto-Renewal

6. Adjust Your Firewall Settings

7. Check Your Website

Additional Configurations

Troubleshooting

Final Notes

Opening a Port using firewall-cmd

To open a specific port (e.g., 3333) using firewall-cmd, follow these steps:

sudo firewall-cmd --zone=public --permanent --add-port=3333/tcp sudo firewall-cmd --reload

This will permanently add port 3333 to the list of allowed ports in the public zone and then reload the firewall settings to apply changes.