Ad Widget

Collapse

Issues with SSL frontend setup when using my own CA

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jaltmann
    Junior Member
    • Mar 2024
    • 4

    #1

    Issues with SSL frontend setup when using my own CA

    Hello,


    I am currently implementing a Zabbix 6.4 setup and am having issues with implementing SSL with our CA certs. Although I was able to get the implementation working with self-signed certificates it is not working when I am trying to use our CA certificates.

    OS: Rocky Linux 9.2 (Blue Onyx). Web: Apache/2.4.57 (Rocky Linux)

    I am seeing a variety of instructions online depending on Zabbix version and particular integration so was hoping to get more clarity to resolve the issues I’m having with using the CA cert for SSL integration. The end goal is getting it to work with SAML but first I need to get the CA certs working rather than the self signed.

    First I installed the ssl_mod

    Package mod_ssl-1:2.4.57-5.el9.x86_64 is already installed.

    I have validated this is installed correctly (see above)

    Currently the self signed cert solution is working, but the issue is that I need to use a more secure CA solution in order to move ahead. I am seeing many different takes on what files/paths need to be reconfigured and was hoping to get more clarity to assist with troubleshooting and getting the solution to work.

    What files in particular need to be modified to complete this integration? What needs to be configured in those files. I am seeing examples where it is configured in Apache and examples where it is configured in Zabbix config files.

    Where do you recommend the certificate files be located. Which path? I have loaded the certificate file (.cer) and certificate (.key) files to where the Apache points and it breaks being able to web login.

    What folder permissions are recommended in the location of the certificate files?

    Here is my SSL config for Apache
    Listen 443 https
    <VirtualHost _defualt_:443>
    DocumentRoot "/usr/share/zabbix"
    ServerName Actual_Server_Name
    ErrorLog www/home/logs/error_log
    SSLEngine on
    SSLCertificateFile /etc/ssl/name_of_cert.crt
    SSLCertificateKeyFile /etc/ssl/private/name_of_key.key
    </VirtualHost>
    When I run my file and not the apache selfsigned, I receive the following logs and I am not able to start the web service:


    Mar 20 14:06:44 NETGRAPHSP01.net.wcupa.edu systemd[1]: Starting The Apache HTTP Server...
    Mar 20 14:06:44 NETGRAPHSP01.net.wcupa.edu systemd[1]: httpd.service: Main process exited, code=exited, status=1/FAILURE
    Mar 20 14:06:44 NETGRAPHSP01.net.wcupa.edu systemd[1]: httpd.service: Failed with result 'exit-code'.
    Mar 20 14:06:44 NETGRAPHSP01.net.wcupa.edu systemd[1]: Failed to start The Apache HTTP Server.
    [root@NETGRAPHSP01 private]# journalctl -xeu httpd.service
    ░░
    ░░ The unit httpd.service has entered the 'failed' state with result 'exit-code'.
    Mar 20 13:58:05 NETGRAPHSP01.net.wcupa.edu systemd[1]: Failed to start The Apache HTTP Server.
    ░░ Subject: A start job for unit httpd.service has failed
    ░░ Defined-By: systemd
    ░░ Support: https://access.redhat.com/support
    ░░
    ░░ A start job for unit httpd.service has finished with a failure.
    ░░
    ░░ The job identifier is 7612 and the job result is failed.
    Mar 20 14:06:44 NETGRAPHSP01.net.wcupa.edu systemd[1]: Starting The Apache HTTP Server...
    ░░ Subject: A start job for unit httpd.service has begun execution
    ░░ Defined-By: systemd
    ░░ Support: https://access.redhat.com/support


    I appreciate any assistance in clarifying the above.
    Attached Files
  • tim.mooney
    Senior Member
    • Dec 2012
    • 1427

    #2
    Originally posted by jaltmann

    When I run my file and not the apache selfsigned, I receive the following logs and I am not able to start the web service:
    In addition to the systemd/journald logs (which are not very helpful in this case) there are almost certainly log messages in your Apache httpd logs, especially the error log. These messages may give you a better idea what you need to fix.

    Comment


    • jaltmann
      jaltmann commented
      Editing a comment
      Thanks. Yes, the Apache httpd logs ended up pointing to an issue with certificates.
  • jaltmann
    Junior Member
    • Mar 2024
    • 4

    #3
    This issue is resolved. It was an issue purely between Apache and my own certificate request from the CA we use. Initially I was thinking there was some Zabbix configuration involved, however this was solving for Apache which is the powers the front end web GUI. Thanks.

    Comment

    Working...