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 Windows Connection error with https

I have Ubuntu 20.04.6 LTS and I configured my server with https connection using LetsEncrypt certificate.

I connect my OCSServer with https://fqdn/ocsreports/ and it is functional.

When trying to run my Windows ocsagent with SSL = 1, it shows an error in the log and does not run the PC inventory.

My ocsinventory.ini

[OCS Inventory Agent]

ComProvider=ComHTTP.dll

Debug=1

Local=

NoSoftware=0

HKCU=0

NoTAG=0

IpDisc=

WMI_FLAG_MODE=COMPLETE

DEFAULT_USER_DOMAIN=

[HTTP]

Server=https://fqdn/ocsinventory

SSL=1

CaBundle=cert.pem

AuthRequired=0

User=

Pwd=

ProxyType=0

Proxy=

ProxyPort=0

ProxyAuthRequired=0

ProxyUser=

ProxyPwd=

[OCS Inventory Service]

TTO_WAIT=6540

PROLOG_FREQ=24

INVENTORY_ON_STARTUP=1

OLD_PROLOG_FREQ=24

My ocsinventroy.log

==============================================================================

Starting OCS Inventory Agent on Thursday, April 25, 2024 16:34:02.

AGENT => Running OCS Inventory Agent Version 2.10.1.0

AGENT => Using OCS Inventory FrameWork Version 2.10.1.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) successfully 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 cURL Communication Provider> Version <2.10.1.0>

AGENT => Sending Prolog

DID_CHECK => Read DeviceID <NotePauloSilva-2024-04-25-09-59-06> and MACs <0A:00:27:00:00:080A:00:27:00:00:0B0A:00:27:00:00:0D2C:6F:C9:66:35:8854:13:79:ED:5A:4518:66:DA:FF:CE:8900:15:5D:E6:C4:03> 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 <cert.pem>

COM SERVER => Sending HTTP Post request to URL <https://fqdn/ocsinventory>

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

COM SERVER => Cleaning cURL library

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:01.

Where i get certificate to write folder C:\ProgramData\OCS Inventory NG\Agent with name cert.pem or cacert.pem.

Thanks

in OCS Inventory NG agent for Windows by (140 points)

1 Answer

0 votes

can you try the best answer from here?

https://ask.ocsinventory-ng.org/7351/agent-send-prolog-failed-with-letsencrypt-ssl

Just copy and paste ROOT CHAIN then make sure the file name is cacert.pem

for principal configuration please look here

https://miloszengel.com/ocs-inventory-ng-2-5-install-guide-on-debian-stretch-with-ssl-and-deployment/5/

by (24.3k points)
 
Powered by Question2Answer
...