Ad Widget

Collapse

HTTPS SSL certificate

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kederin01
    Junior Member
    • Apr 2020
    • 1

    #1

    HTTPS SSL certificate

    Hi everyone,

    I'm a bit new to zabbix, and Linux. I'm trying to get a SSL certificate so the environment is secure. I'm using ubuntu 18.04 and i'm following this documentation https://www.zabbix.com/documentation...best_practices
    I didn't need to install OpenSSL since Apache2 already has it so i just updated it. As i go through the documentation I have come to this step:
    Edit Apache SSL configuration:
    /etc/httpd/conf.d/ssl.conf As I'm trying to edit the config file, i simply cannot find it. It does not exist on my machine. So I looked around in other folder where i thought it was logical for file to be located there. /etc/apache2 /etc/ssl /etc/httpd I'm I missing something or does anyone have the right steps to set this up for ubuntu? Thanks in advance!
  • tim.mooney
    Senior Member
    • Dec 2012
    • 1427

    #2
    Different Linux distros use different default names and even directory layouts for some config files. Fedora and Red Hat Enterprise Linux (and respins of RHEL like CentOS and Scientific Linux) typically use /etc/httpd as the base directory for all Apache httpd config, and in the past it has been common for RedHat-like systems to do all ssl config in /etc/httpd/conf.d/ssl.conf.

    Ubuntu is derived from a different distro, so the conventions there are different from the RedHat systems. As you've correctly deduced, most config for Apache is going to be under /etc/apache2, and there's a different method for enabling apache modules. I think it's called "a2mod", but I'm not sure because I mainly use RHEL-like systems.

    In addition to the different base directory for the Apache httpd config, Ubuntu may not even split its SSL (and TLS) config into a separate "ssl.conf" file. So on Ubuntu, TLS and cert config may be done directly in your virtual host file, or it may be somewhere else.

    What you want to do is do some web searching for something like

    ubuntu 18.04 apache httpd enable ssl

    and then find two articles that seem to be giving the same advice. There's a lot of bad "how to"s out there, so your best bet is to find a couple that recommend the same thing, and follow them.

    Comment

    Working...