Anomalie #1634
fermé
I am experiencing the same issue only when using a self signed wildcard certificate on my localhost :
Galette error:
Type: ErrorException
Message: get_headers(): Peer certificate CN=`*.localhost' did not match expected CN=`galette.localhost'
File: /home/guillaume/devel/galette/galette/lib/Galette/Util/Telemetry.php
Line: 153
Adding the following before source:galette/lib/Galette/Util/Telemetry.php@develop#L153 resolves the issue in such situation :
stream_context_set_default( [
'ssl' => [
'verify_peer' => false,
'verify_peer_name' => false,
],
]);
Solution found here
But I'm not sure it's the right way to follow.
Guillaume Agniéray a écrit (#note-1):
I am experiencing the same issue only when using a self signed wildcard certificate on my localhost :
The same issue? DId you post this comment in the wrong ticket?
[...]
Adding the following before source:galette/lib/Galette/Util/Telemetry.php@develop#L153 resolves the issue in such situation :
[...]
Solution found here
But I'm not sure it's the right way to follow.
I guess that's not a problem, since this call is done only to get some information about local webserver for telemetry.
Johan Cwiklinski a écrit (#note-2):
The same issue? DId you post this comment in the wrong ticket?
No. I misunderstood the issue :D
Guillaume Agniéray a écrit (#note-3):
Johan Cwiklinski a écrit (#note-2):
The same issue? DId you post this comment in the wrong ticket?
No. I misunderstood the issue :D
OK, no problem :D
Anyway, this was still a real issue, and this should be fixed with proposed PR (Telemetry script has been done for GLPI at the origin, I just took back changes made since I integrate the script in Galette).
- Statut changé de Nouveau à Résolu
- % réalisé changé de 0 à 100
- Statut changé de Résolu à Fermé
Formats disponibles : Atom
PDF