Hi, I have set up a server (debian 12 + ocs docker image 2.12.3)
agent on windows 10 22h2 version 2.1.1.1
Architecture :
Windows Agent (with root-ca file deployed and specified in the config file) -> Docker Nginx reverse proxy [enforces https same root ca] -> Docker Ocs Inventory server (root-ca file deployed and specified in the config file)
The ocsreports interface is working fine with https, but no machine inventory appears.
I tried editing many configuration files (including apache inside the container) but to no avail
No apache access logs are written when the agent inventory is triggered.
Logs are written when accessing the webui.
I also noted the source ip in the apache logs are those of the reverse proxy and not the client computer.
In dockerfile & docker-compose, I defined :
OCS_SSL_KEY=/certs/ocs.key
OCS_SSL_CERT=/certs/ocs.pem
OCS_SSL_CA=/certs/ca.pem
Agent conf :
[HTTP]
Server=ocs.xxxx.xx
SSL=1
CaBundle=C:\ProgramData\OCS Inventory NG\Agent\ca.pem
AuthRequired=0
Agent logs :
AGENT => Running OCS Inventory NG Agent Version 2.1.1.1
AGENT => Using OCS Inventory NG FrameWork Version 2.1.1.1
AGENT => Loading plug-in(s)
AGENT => Using network connection with Communication Server
AGENT => Using Communication Provider <OCS Inventory NG cURL Communication Provider> Version <2.1.1.1>
AGENT => Sending Prolog
ERROR *** AGENT => Failed to send Prolog <SSL connect error>
AGENT => Unloading communication provider
AGENT => Unloading plug-in(s)
AGENT => Execution duration: 00:00:01.
PS : when opening /ocsinventory with a browser (https), the "Bad Request" footer is : Apache/2.4.52 (Ubuntu) Server at ocs.xxx.xx Port 80
Maybe an apache-side issue ? (answering in cleartext on a ssl channel)