Welcome to OCS Inventory NG community support, where you can ask questions and receive answers from other members of the community.

Please ask questions only in English or French.

Release 2.12.3 available

The official documentation can be found on https://wiki.ocsinventory-ng.org. Read it before asking your question.

agent do not connect to server with SSL

I cannot make the agent to send inventory to the server by ssl. I already put the file cacert.pem inside the C:\program data\ Ocs inventory folder. But something seems off. Here is the agent log:

    WARNING *** COM SERVER => Failed to send HTTP Post request <SSL peer certificate or SSH remote key was not OK>
    COM SERVER => Cleaning cURL library
================= TRACE START ===============

================= TRACE STOP ===============
ERROR *** AGENT => Failed to send Prolog <SSL peer certificate or SSH remote key was not OK>
AGENT => Unloading communication provider
AGENT => Unloading plug-in(s)
AGENT => Execution duration: 00:00:00.

Thank you in advance for you help.
in OCS Inventory NG agent for Windows by (180 points)

3 Answers

0 votes

Hi,

How have you setup the certificate? Which value have you written for CN variable? 

It's mandatory to respect this rule:

  1. if CN=ip then setup server=https://@ip:port/ocsinventory in ocs inventory config file
  2. if CN=fqdn then setup server=https://fqdn:port/ocsinventory in ocs inventory config file

Regards

Frank

by (90.2k points)
0 votes
I used this https://ip/ocsinventory should I have used http instead of https?

Thank you.
by (180 points)
0 votes
So your certificate contains CN=ip, right?

Is mod_ssl enabled and activated on the ocs server?

Regards

Frank
by (90.2k points)
 
Powered by Question2Answer
...