Ad Widget

Collapse

SSL Certificate Zabbix fronend Centos8

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • medharrak
    Member
    • Jun 2018
    • 31

    #1

    SSL Certificate Zabbix fronend Centos8

    Hi all,
    I have Zabbix 4.4.8 running on Centos 8 , I tried to configure auto signed SSL following the "zabbix 4.4 manual", but it's not working , any idea why ?
    The following is my configuration

    yum install mod_ssl

    mkdir -p /etc/httpd/ssl/private
    chmod 700 /etc/httpd/ssl/private

    Country Name (2 letter code) [XX]:
    State or Province Name (full name) []:
    Locality Name (eg, city) [Default City]:
    Organization Name (eg, company) [Default Company Ltd]:
    Organizational Unit Name (eg, section) []:
    Common Name (eg, your name or your server's hostname) []:192.168.56.103
    Email Address []:

    -I Edited /etc/httpd/conf.d/ssl.conf
    DocumentRoot "/usr/share/zabbix"
    ServerName 192.168.56.103:443
    SSLCertificateFile /etc/httpd/ssl/apache-selfsigned.crt
    SSLCertificateKeyFile /etc/httpd/ssl/private/apache-selfsigned.key

    - I Edited /etc/httpd/conf/httpd.conf
    And I added at the end the following :


    <VirtualHost *:*>
    ServerName zabbix-server
    Redirect permanent / http://zabbix-server
    </VirtualHost>
  • doogie
    Junior Member
    • May 2020
    • 15

    #2
    Make it easier for yourself and use letsencrypt with the apache module then you get a valid certificate.

    Instructions here: https://certbot.eff.org/lets-encrypt...l8-apache.html

    Then you'll have a valid certificate plus it'll setup everything for you.

    Cheers,
    Doogie

    Comment

    • medharrak
      Member
      • Jun 2018
      • 31

      #3
      LetEncrypt needs domain name configured , I don't have domain name , I connect to the server with it's IP.

      Comment

      • CafeMan
        Junior Member
        • Feb 2021
        • 7

        #4
        Originally posted by medharrak
        LetEncrypt needs domain name configured , I don't have domain name , I connect to the server with it's IP.
        Hi, I have same problem.
        Did you solve it somehow? Did you solve it somehow? Thx

        Comment

        • medharrak
          Member
          • Jun 2018
          • 31

          #5
          Originally posted by CafeMan

          Hi, I have same problem.
          Did you solve it somehow? Did you solve it somehow? Thx
          Hi, No still not , I haven't get any help in this forum

          Comment

          • wojtech
            Junior Member
            • Feb 2021
            • 1

            #6
            Originally posted by medharrak

            Hi, No still not , I haven't get any help in this forum
            Hey, I am not Linux specialist, but have you verified that your web (GUI) is running on httpd (Apache) and not nginx?
            When you install mod_ssl it also installs httpd if the package does not exist, so if your webserver is running on nginx then it will not accept httpd config files.

            You can verify which webserver is listening on 80 port running this command:
            Code:
            ss -tlnp | grep -E ":80\b"
            or maybe this one:
            Code:
            ss -tulpn | grep :80
            --
            You can also try to find a manual on the web how to configure SSL on Centos nad httpd / nginx, you don't have to stick to the Zabbix manual.

            Comment

            Working...