Enable SSL in main domain

Discussion in 'ISPConfig 3 Priority Support' started by Davide, Nov 15, 2017.

  1. Davide

    Davide Member HowtoForge Supporter

    Hi
    I have "old configuration" for SSL on ispconfig panel:

    /etc/apache2/sites-available/ispconfig.vhost
    NameVirtualHost *:443
    <VirtualHost _default_:443>
    [..]
    SSLEngine On
    SSLProtocol All -SSLv3
    SSLCertificateFile /etc/apache2/ssl/mydomain_com.crt
    SSLCertificateKeyFile /etc/apache2/ssl/myserver.key
    SSLCACertificateFile /etc/apache2/ssl/intermediate.crt

    It's answering on "https://hostname.mydomain.com"

    As I have a wildcard certificate, I'd like to serve all "mydomain,com" (including ispconfig login) with the same certificate and listening in 443
    Is it possible?
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Yes, that's possible. But the ispconfig vhost file should not be edited, your changes in that file will get removed anyway. Instead of editing that file, put your SSL certificate, key and bundle into the ISPConfig ssl directory (/usr/local/ispconfig/interface/ssl/) and replace the files that exist there without changing the file names.

    additionally, you will have to set your SSL cert in the default ssl vhost file of your Linux system.

    This thread might help you with that as well:

    https://www.howtoforge.com/communit...l-port-8080-with-lets-encrypt-free-ssl.75554/
     

Share This Page