You are not logged in.

Announcement

 Téléchargez la dernière version stable de GLPI      -     Et vous, que pouvez vous faire pour le projet GLPI ? :  Contribuer
 Download last stable version of GLPI                      -     What can you do for GLPI ? :  Contribute

#1 2023-09-07 10:33:19

ccharlie06
Member
Registered: 2022-03-31
Posts: 3

GLPI Agent no connection to server since https config

Hello,
I have update my server to configure it for https ( with a valid certificvate ), but since then, my agents are unable to connect to the server.
The logs shows
[Thu Sep  7 09:33:37 2023][error] [http client] internal response: 500 Can't connect to myglpiserverdns:443 (A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.), IO::Socket::IP configuration failed
[Thu Sep  7 09:33:37 2023][error] No supported answer from server at https://myglpiserverdns/glpi/front/inventory.php
[Thu Sep  7 09:33:37 2023][info] target server0: next run: Thu Sep  7 10:33:37 2023 - https://myglpiserverdns/glpi/front/inventory.php

Server is running 10.0.9
Using GLPI Agent 1.5

When I connect to my GLPI server, I see my certificate, but all my agents aren't updated any more since I modify the httpd.conf file

Any ideas ?
Thanks
Christophe


My httpd.conf file is here:
#
ServerRoot "/etc/httpd"

# Listen: Allows you to bind Apache to specific IP addresses and/or
Listen 80
Listen 443

#
Include conf.modules.d/*.conf

#
User apache
Group apache

#
<VirtualHost *:443>
    ServerName MYGLPISERVERDNS:443
    SSLCertificateFile "/opt/certs/server.cer"
    SSLCertificateChainFile "/opt/certs/CA-Bundle.cer"
    SSLCertificateKeyFile "/opt/certs/serverkey.cer"
    DocumentRoot /var/www/html/glpi
    <Directory /var/www/html/glpi/>
    Require all granted
    RewriteEngine On
    </Directory>
</VirtualHost>

<VirtualHost *:80>
    ServerName MYGLPISERVERDNS:80
    DocumentRoot /var/www/html/glpi
    <Directory /var/www/html/glpi/>
    Require all granted
    RewriteEngine On
    </Directory>
</VirtualHost>

#
DocumentRoot "/var/www/html"

#
<Directory "/var/www">
    AllowOverride None
    # Allow open access:
    Require all granted
</Directory>

IncludeOptional conf.d/*.conf
ServerName 127.0.0.1

Offline

#2 2023-12-22 18:17:37

Ragnarok
Member
Registered: 2019-10-28
Posts: 44

Re: GLPI Agent no connection to server since https config

if you are using self-signed cert, you must deploy the ca with the agent.

Offline

Board footer

Powered by FluxBB