Enable SSL (Apache)

Install and enable an SSL certificate for your HST Server Web UI.

These instructions assume that you have already purchased your key and have created your certificate and key files.

  1. Locate your Apache configuration file and open with a text editor.

    The name of your Apache configuration file depends on your system platform. Typically, your Apache configuration file is named httpd.conf or apache2.conf.

    Version Path
    RedHat, CentOS, Fedora /etc/httpd/conf/httpd.conf

    If you cannot locate the configuration file for your system's version of Apache, see the documentation for your platform.

  2. Verify or update Apache's SSL configuration file and save.
    1. Open your Apache SSL configuration file, httpd-ssl.conf. If you cannot locate the configuration file, see the Apache documentation for your operating system.
    2. Verify that the following line is uncommented:
      Include conf/extra/[httpd-]ssl.conf
      Note: On CentOS 7, the file is called ssl.conf rather than httpd-ssl.conf.
    3. Add the following section to your configuration file (httpd.conf):
      <IfModule ssl_module>
         Listen 443
      For CentOS and RedHat Linux distributions:
      <IfDefine SSL>
         Listen 443
    4. Update the SSLCertificateFile and SSLCertificateKeyFile values to the correct certificate paths and file names.

      For example:

      SSLCertificateFile     /path/to/my_cert_name.crt
      SSLCertificateKeyFile  /path/to/my_key_name.key
    5. Save your changes and close the file.
  3. Restart the Apache Web Server.
    Linux OS Restart Command
    • Debian 8 or newer
    • Ubuntu 15.04 or newer
    $ systemctl restart apache2.service
    • CentOS 7 or newer
    • RHEL 7 or newer
    $ systemctl restart httpd.service
    • Debian 7 or older
    • Ubuntu 14.10 or older
    $ sudo service apache2 restart
    • CentOS 6
    • RHEL 6
    $ sudo service httpd restart
    Version Command
    $ /etc/init.d/apache restart
    $ svcadm restart apache24
  4. Test your SSL connection.

    Go to https://your-server-ip-or-name to test your SSL setup. This must be the same hostname that you entered into the common name field when creating your certificate. For details, please refer to Create an SSL Certificate (Apache).