OCSInventory-NG / UnixAgent

This is the OCS unified agent for Unix operating systems
http://www.ocsinventory-ng.org/en/
GNU General Public License v2.0
89 stars 84 forks source link

Add OCSSSL which can be used to disable HTTPS cert check #435

Closed nerijus closed 8 months ago

nerijus commented 1 year ago

Status

READY

Description

It adds a variable which can be set in order to disable HTTPS cert check. Currently I need to manually modify /usr/libexec/ocsinventory-agent/ocsinventory-agent.cron which is incovenient, because this file is overwritten on package upgrade on CentOS/Fedora.

The following patch for the rpm spec file is also needed:

--- ocsinventory-agent.spec.orig    2022-10-17 16:56:26.000000000 +0300
+++ ocsinventory-agent.spec 2023-03-28 17:55:25.535739778 +0300
@@ -180,7 +180,10 @@

 # can be used to override the %{name}.cfg setup.
 # OCSSERVER[0]=your.ocsserver.name
-# 
+#
+# can be used to disable HTTPS cert check.
+# OCSSSL[0]=0
+#
 # corresponds with --local=%{_localstatedir}/lib/%{name}
 # OCSSERVER[0]=local
 %endif
Lea9250 commented 8 months ago

Hi @nerijus,

Thank you for contributing, I'm merging :)

Regards, Léa