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.11.1 available

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

Agent Conection SSL with LetsEncrypt

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 Unix by (140 points)

Please log in or register to answer this question.

 
Powered by Question2Answer
...