← Volver al blog

How to Set Up SSL for Apache

  • Xernode
  • 1 min de lectura
  • 11 de abril de 2026
VPS apache ssl security vps letsencrypt https certificate

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

  1. Update your package list
    • sudo apt update
  2. Install Certbot and the Apache plugin
    • sudo apt install -y certbot python3-certbot-apache
  3. Obtain and install an SSL certificate
    • sudo certbot --apachen
      • Follow the prompts to select your domain and enable HTTPS.
  4. (Optional) Test automatic renewal
    • sudo certbot renew --dry-run
  5. 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

Related Guides