Open Tpo76 opened 2 years ago
I have the same issue.
I have Centreon 22.04 and a valid SSL certificate. I copied my root-ca and intermediate-ca on /etc/pki/ca-trust and used the command update-ca-trust.
But I have always the same issue: There was an consistency error in the exported files - please use the legacy export menu to troubleshoot
An idea ?
Hi @uc33260
copy your ca_selfsigned.crt (or the name you are using) file to
/etc/pki/ca-trust/source/anchors/ca_selfsigned.crt
chmod it to 644
update-ca-certificates
and done... thanks @Tpo76
Thank you for help :) that's work for me !
BUG REPORT INFORMATION
Prerequisites
Set up HTTPS with a self-signed certificate
Versions Centreon Web 21.10.1
Operating System CentOS, Debian ... CentOS 7
Browser used
Version: 96.0.4664.45
Description
When using the new feature to export and reload the configuration through the new shortcut.
The export failed with that error message.
There was a consistency error in the exported files - please use the legacy export menu to troubleshoot
The export works fine through the legacy menu.
Steps to Reproduce
Describe the received result
Error: There was a consistency error in the exported files - please use the legacy export menu to troubleshoot
Describe the expected result
Logs
PHP error logs
For PHP 8
Additional relevant information (e.g. frequency, ...)
After adding some debug in the code I find out the following error message
<pre>errorobject(Centreon\Domain\MonitoringServer\Exception\ConfigurationMonitoringServerException)#657 (7) { ["message":protected]=> string(217) "Generation error on monitoring server #7: Peer certificate cannot be authenticated with given CA certificates for "https://x.x.x.x/centreon/include/configuration/configGenerate/xml/generateFiles.php"."
After adding my root certificate as "trust" in my central server with "update-ca-trust", the feature works fine.
We should allow the usage of "untrusted" certificates.