How to Set Up SSL Certificate on Apache Webserver with Webmin

Author:Mikkel Haldorsen
Updated:Apr 18, 2025

To set up an SSL certificate on Apache Webserver using Esadax, follow these organized steps:

  1. Access VirtualHosts:

    • Navigate to the expanded Servers section and click on the Create Virtual Host tab.
  2. Configure Virtual Host Settings:

    • Select the "Any address" radio button for IP flexibility.
    • Set the port to 443 in the Port field for HTTPS.
    • Specify the DocumentRoot directory where your website files reside.
    • Enter your domain name (e.g., example.com) in the Server Name field.
  3. Add Virtual Server:

    • Tick "Standard .httpd conf file" to add the virtual server to the configuration file.
    • Choose "Automatic" from the drop-down menu for directive copying.
  4. Create Virtual Host:

    • Click "Create Now" to save and create the new VirtualHost.
  5. Enable SSL Module:

    • Ensure mod_ssl is enabled using:
      • a2enmod ssl (Apache)
      • yum install mod_ssl (CentOS-based systems)
  6. Access SSL Settings:

    • Click on the newly created VirtualHost to open its settings.
    • Verify the availability of SSL Options; enable if necessary.
  7. Enable SSL/TLS Protocols:

    • Enable TLS 1.1 and 1.2 if supported by your setup.
    • Disable older protocols (SSL 2.0, 3.0, TLS 1.0) unless required.
  8. Configure Certificate Paths:

    • Browse to locate and select:
      • Certificate File (domain.crt)
      • Private Key (domain.key)
      • CA Bundle (ca_bundle.crt)
  9. Save SSL Settings:

    • Input paths correctly and click "Save".
  10. Verify SSL Installation:

    • Use online tools like SSL Checker to ensure successful installation.
    • Test HTTPS access to confirm functionality.
  11. Maintenance and Security:

    • Regularly update Apache and consider using Let's Encrypt for free certificates.
    • Ensure server security with appropriate measures.