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.

OCSReports 2.9.2 and XP Agent - SSL Error



OCS Reports version = latest (2.9.2)
Windows Agent for XP version = ( gives error when SSL and cacert.pem enabled, but working without https/ssl
Latest Windows Agent with newer S.O = ( working!

More details:

im trying to connect SSL with some XP clients, using Windows agent version, since its the last with XP support but having error:

COM SERVER => Sending HTTP Post request to URL <https://my_server_address_that_i_have_edited_for_privacy_reasons/ocsinventory>
WARNING *** COM SERVER => Failed to send HTTP Post request <SSL connect error>
COM SERVER => Cleaning cURL library
ERROR *** AGENT => Failed to send Prolog <SSL connect error>

  • Auto generated and signed certificates with cacert.pem inside right folder
  • Other operational systems using latest windows agent ( are working normal with ssl enabled

Here is a full log from agent running with error on a windows xp fresh VM: https://logpaste.com/UX40b9Vl

and here a full log from agent ( working on a win7x32 fresh VM:

any help?

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

7 Answers

0 votes
Best answer
When server and agent use https, they need to use the same level of TLS.

Recent Linux distributions disable TLS 1(.0) and 1.1 for Apache, but what for agent ?
by (19.6k points)
selected by
0 votes


so, for now i mannualy enabled SSLv1 at apache v2.4.41 and Windows Xp agents (v2.1.1.1) are back to work with SSL enabled

add this line to /etc/apache2/sites-avaiable/default-ssl.conf

SSLProtocol             all -SSLv2 -SSLv3
reffer: https://serverfault.com/questions/824821/how-to-enable-tls-1-1-and-tls-1-0-on-apache

by (190 points)
0 votes

Is it safe to have such option?

if i will have SSLProtocol all -TLSv1.1 -TLSv1 -SSLv2 -SSLv3 as recommended by security reason, it can work somehow? or i need to have security hole to be able to connect Windows 2003?

by (240 points)
0 votes
For security reasons, you want only TLS 1.2. Ok

Why you want continue to use, at the same time, some hosts with Windows 2003 ?

The problem is very simple : old systems use old agents which use old TLS levels. (And newest agents don't run on old OS.)

(I don't know which version of agents start to use TLS 1.2, but it's upper than, the last version for XP and maybe 2003. Easily you cant find the link https://github.com/OCSInventory-NG/OCSInventory-Server/issues/30, so agents after A=2016-M=09-D=05 use TLS 1.2 ...)
by (19.6k points)
edited by
0 votes

@ Sometimes you cant get rid of win2003 for any reasons, but you accept the risk only for some systems. If you enable lower TLS then 1.2 in OCS can affect all your environment. I would like to know if there is any possibility to avoid it. One of it is also enabling HTTP beside HTTPS, but maybe somebody also tried SNMP? or other solution?

by (240 points)
0 votes
Due your need (keep W2003 hosts), you need to keep agents with old levels of TLS.

But you can configure Apache with more than one url using 'VirtualHost', and if Apache is 2.4.42 or upper with SSLProtocols differents = different level of TLS.

So you can have an url for old agents with TLS1, and another url for new agents with TLS 1.2. (Agent settings means differents 'Server' settings !)

For downloading OCS packages, agents will use https for 'info' file and http for 'fragments' files. (Also when you create a package, you have only the choice of HTTP !). So I'm not sure, it's possible to have only HTTPS.

Therefore when you use https, you need certificate, and you have to consider how renew the certificate and also deploy new certificate : IMHO I prefer SSL=0 ...
by (19.6k points)
0 votes
Thanks for those information. Will check that option
by (240 points)
Powered by Question2Answer