As I try to use the deployment feature from a Unix OCS Server to an Unix agent, the client never receives the package. It seems that OCS fails to create/send the "info file" of the package.
When I try to access to https://<server_hostname>/downloads/<packagetimestamp>, I receive a 403 - Forbidden error.
I use self-signed certificate, the certificate is shared between the server and the client.
Server certificate : /etc/ssl/certs/ocsng.pem
Client certificate : /var/lib/ocsinventory-agent/https:__<server_hostname>:443_ocsinventory/cacert.pem
The CN on the certificate is the hostname of the Machine where the OCS Server is.
The SSL Mode is enabled and set on SSL_MODE_PREFERRED and the key and cert paths are correct.
OCS Inventory NG Unix Server version : 2.7
OCS Inventory Unix Client : 2.6.1
Server's OS : Ubuntu 18.04
Client's OS : Ubuntu 18.04
Logs on client Side :
[Wed May 6 18:29:32 2020][debug] =BEGIN=SERVER RET======
[Wed May 6 18:29:32 2020][debug] $VAR1 = '<?xml version=\'1.0\' encoding=\'UTF-8\'?>
[debug] Calling handlers : `end_handler'
[debug] [download] Calling download_end_handler
[info] [download] Beginning work. I am 4346.
[debug] [download] No info file found for 1588777867!!
[info] [download] Cleaning 1588777867 package.
[info] [download] No more package to download.
[debug] [download] End of work...
Logs on server side :
[ssl:warn] [pid 4306] AH01909: 127.0.1.1:443:0 server certificate does NOT include an ID which matches the server name
Thanks in advance for anyone who can help me.