2

Free SSL Certificate

Network Configuration | by aayushchugh | submitted in October 20, 2024

Generate a free ssl certificate using certbot

# Install certbot
sudo apt install certbot
sudo apt install python3-certbot-nginx # for nginx
sudo apt install python3-certbot-apache # for apache


# Generate certificate
sudo certbot --nginx -d <domain_name> -d www.<domain_name> # for nginx
sudo certbot --apache -d <domain_name> -d www.<domain_name> # for apache