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 http://wiki.ocsinventory-ng.org. Read it before asking your question.

ERROR *** AGENT => Failed to send Prolog <SSL connect error>

I'm using OCSinventory linux server 2.0.5 with ssl. My linux agent can send inventory to server with no problem. However my windows agent can't. There is my windows agent log

My pem key is correct for sure because I can use it with my linux agent.

Thank you

Starting OCS Inventory NG Agent on Tuesday, May 10, 2016 01:35:50.
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)
    DLL PLUGIN => Searching for Plug-in DLL(s) in folder <C:\Program Files\OCS Inventory Agent\plugins>
    DLL PLUGIN => 0 DLL Plug-in(s) succesfully loaded on 0 DLL(s) found
AGENT => Using network connection with Communication Server
    COM PROVIDER => Loading Communication Provider <C:\Program Files\OCS Inventory Agent\ComHTTP.dll>
AGENT => Using Communication Provider <OCS Inventory NG cURL Communication Provider> Version <2.0.5.0>
AGENT => Sending Prolog
    DID_CHECK => Read DeviceID <XXXXXX> and MACs <xx:xx:xx:xx:xx> in file <ocsinventory.dat>
    COM SERVER => Initializing cURL library for sendRequest
    COM SERVER => Using cURL without server authentication
    COM SERVER => Disabling cURL proxy support
    COM SERVER => Enabling cURL SSL server validation support using CA Bundle <C:\Users\xx\Documents\xxx.pem>
    COM SERVER => Sending HTTP Post request to URL <https://x.x.x.x/ocsinventory>
    WARNING *** COM SERVER => Failed to send HTTP Post request <SSL connect error>
    COM SERVER => Cleaning cURL library
================= TRACE START ===============
 
================= TRACE STOP ===============
ERROR *** AGENT => Failed to send Prolog <SSL connect error>
AGENT => Unloading communication provider
AGENT => Unloading plug-in(s)
AGENT => Execution duration: 00:00:01.
in OCS Inventory NG agent for Windows by (120 points)

1 Answer

0 votes
Hi,

How have you setup your certificate? Can you post ocsinventory.ini content file, plz?

Regards

Frank
by (88.9k points)
Hi,

Thank you for your interest,

I upload my server ssl crt to trusted certificates of my windows and added windows host file to my server ip and FQDN (by the way I create ssl CN with server FQDN)

there is my ocsinvent?ry.ini

[OCS Inventory Agent]
ComProvider=ComHTTP.dll
Debug=2
Local=
NoSoftware=0
HKCU=0
NoTAG=0
IpDisc=
[HTTP]
Server=https://Server_FQDN/ocsinventory
SSL=1
CaBundle=C:\Users\xx\Documents\xxx.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=86400
 
Powered by Question2Answer
...