Topic: fusioninventory-injector certificate verify failed

Hi there,

I tried to push the data from the fusioninventory-esx results to my OCSInventory, but when I use the command below I get always the error "500 Can't connect to server:443 (certificate verify failed)"

I use this line:
fusioninventory-injector -v -r -d /var/lib/fusioninventory-agent --url https://user:pw@my-server/ocsinventory

I can't see any error in my logs :-(

My System is a Ubuntu 16.04 LTS with all upgrades and the OCS and the fusioninventory are both on it.

Has anyone an idea to solve this problem?

Re: fusioninventory-injector certificate verify failed

Not sure work now, in my memory, you must add fusioninventory user agent first in ocs inventory part.

The main problem is that I'm not sure it can works, because the 2 products are less compatible than 5 years ago...

Co-leader, official developper
DCS official PARTNER: dcs.glpi@dcsit-group.com

Re: fusioninventory-injector certificate verify failed

Hi,
it seems fusioninventory-injector can't verify the server certificate and this program lacks an option to disable  ssl checks.

You should edit fusioninventory-injector and insert the following line around l.115, just before "my $request = HTTP::Request( ...":

    $ua->ssl_opts(verify_hostname => 0, SSL_verify_mode => 0);

If it's fix your problem, I'll add the option to injector.

Re: fusioninventory-injector certificate verify failed

Hi gbougard,

Your solution solve our problem to inject our computer data. wink
It should be interesting to integrate this functionality as a native option of FusionInventory Injector.


Could-you integrate this modification as an option in a next release?