How to Set Up SSL for Apache
Introduction
Securing your website with SSL is essential for protecting data and improving trust. This guide shows you how to set up SSL for Apache on your Ubuntu VPS using a free Let's Encrypt certificate.
Step-by-step Guide
- Update your package list
- sudo apt update
- Install Certbot and the Apache plugin
- sudo apt install -y certbot python3-certbot-apache
- Obtain and install an SSL certificate
- sudo certbot --apachen
- Follow the prompts to select your domain and enable HTTPS.
- sudo certbot --apachen
- (Optional) Test automatic renewal
- sudo certbot renew --dry-run
- Restart Apache to apply changes
- sudo systemctl restart apache2
Recommendations
- Always use HTTPS for all your sites.
- Set up automatic renewal for your SSL certificates.
- Regularly check your SSL configuration for vulnerabilities.
Call To Action
eed a secure VPS for your websites? Check out our hosting plans: https://xernode.com/#pricing