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.

OCSINVENTORY-NG 2.0.5 SERVER & AGENT PROBLEM WITH HTTPS [closed]

Hello Stéphane,

Thank you very much for your answer. I have followed your instructions as well those from the blog pointed out. Unfortunately, even after having certificates in place (agent's installation folder), the workstation is not able to connect with the server.

To give you more info: Agent version 2.0.5.0, Server version 2.0.4, Server OS Slackware 12.0, Apache 2.2.8.

Service encounter error <OCS Inventory NG Agent encounter an error (exit code is 4 => Failed to talk with Communication Server)>.
 
Agent's log:
Starting OCS Inventory NG Agent on Tuesday, October 31, 2017 13:27:11.
AGENT => Running OCS Inventory NG Agent Version 2.0.5.0
AGENT => Using OCS Inventory NG FrameWork Version 2.0.5.0
AGENT => Loading plug-in(s)
AGENT => Using network connection with Communication Server
AGENT => Using Communication Provider <OCS Inventory NG cURL Communication Provider> Version <2.0.5.0>
AGENT => Sending Prolog
ERROR *** AGENT => Failed to send Prolog <Problem with the SSL CA cert (path? access rights?)>
AGENT => Unloading communication provider
AGENT => Unloading plug-in(s)
AGENT => Execution duration: 00:00:01.
 
Config file:
[OCS Inventory Agent]
ComProvider=ComHTTP.dll
Debug=0
Local=
NoSoftware=0
HKCU=0
NoTAG=0
IpDisc=
[HTTP]
Server=https://server.domain/ocsinventory
SSL=1
CaBundle=cacert.pem
AuthRequired=0
User=
Pwd=
ProxyType=0
Proxy=
ProxyPort=0
ProxyAuthRequired=0
ProxyUser=
ProxyPwd=
[OCS Inventory Service]
PROLOG_FREQ=24
OLD_PROLOG_FREQ=24
TTO_WAIT=1800

As a reminder: as long as the server was running as http, everything was fine. Once we've changed to https.... not fine anymore.

However, from the browser, I can access https://server.domain/ocsreports, with no problems (apart from the Exception request, first time, as this is a self-signed certificate).

Thank you for your help, and regards! Valentin

closed with the note: Found the solution, it is two answers bellow.
in OCS Inventory NG server for Unix by (200 points)
closed by

2 Answers

0 votes
Bonjour,
How did you generate your certificate?
Did you put the certificate in the same folder as the inventory. ini file?
by (160 points)
edited by
0 votes

How unaware angry I have been!!!

If the connection is secured, you need user and password! That simple! And, of course, AuthRequired=1

Sorry for wasting your time!

Regards, Valentin

by (200 points)
 
Powered by Question2Answer
...