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

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

Failed to send Prolog

Hello I installed ocs with this tutorial: http://www.miloszengel.com/ocs-inventory-ng-2-3-complete-install-guide-on-debian-8-7-jessie/ 

Next I created ocspackage, and I started ocspakcage on my computer, in file "OCSInventory" from: C:\ProgramData\OCS Inventory NG\Agent. I have error:

Starting OCS Inventory NG Agent on Wednesday, April 19, 2017 12:12:20.
AGENT => Running OCS Inventory NG Agent Version 2.3.0.0
AGENT => Using OCS Inventory NG FrameWork Version 2.3.0.0
AGENT => Loading plug-in(s)
AGENT => Using network connection with Communication Server
AGENT => Using Communication Provider <OCS Inventory NG cURL Communication Provider> Version <2.3.0.0>
AGENT => Sending Prolog
ERROR *** AGENT => Failed to send Prolog <Peer certificate cannot be authenticated with given CA certificates>
AGENT => Unloading communication provider
AGENT => Unloading plug-in(s)
AGENT => Execution duration: 00:00:01.

And this is my file:  ocsinventory.ini:

[OCS Inventory Agent]
ComProvider=ComHTTP.dll
Debug=0
Local=
NoSoftware=0
HKCU=0
NoTAG=0
IpDisc=
[HTTP]
Server=https://192.168.10.64/ocsinventory
SSL=1
CaBundle=cacert.pem
AuthRequired=0
User=
Pwd=
ProxyType=0
Proxy=
ProxyPort=0
ProxyAuthRequired=0
ProxyUser=
ProxyPwd=
[OCS Inventory Service]
TTO_WAIT=600
INVENTORY_ON_STARTUP=0

And this is my certyficate file:

-----BEGIN CERTIFICATE-----
MIIDljCCAn4CCQCo2UPNLdxV+zANBgkqhkiG9w0BAQsFADCBjDELMAkGA1UEBhMC
cGwxEjAQBgNVBAgMCXBvbW9yc2tpZTEOMAwGA1UEBwwFc29wb3QxDDAKBgNVBAoM
A3BiczEMMAoGA1UECwwDcGJzMRYwFAYDVQQDDA0xOTIuMTY4LjEwLjY0MSUwIwYJ
KoZIhvcNAQkBFhZtaWNoYWwuZ2xvd2Fja2lAcGJzLnBsMB4XDTE3MDQxOTExNDAw
OFoXDTI3MDQxNzExNDAwOFowgYwxCzAJBgNVBAYTAnBsMRIwEAYDVQQIDAlwb21v
cnNraWUxDjAMBgNVBAcMBXNvcG90MQwwCgYDVQQKDANwYnMxDDAKBgNVBAsMA3Bi
czEWMBQGA1UEAwwNMTkyLjE2OC4xMC42NDElMCMGCSqGSIb3DQEJARYWbWljaGFs
Lmdsb3dhY2tpQHBicy5wbDCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEB
AMHHkfs+36PruCderYInROwg+IQYQ0r4vUrFy29+Y3nWUSznY96pS4rd+FIDZCPf
rGqHeLhVT6qZ3xMuz420t2bMENjPWWW8syF1xIhN2QWN/fCNSIJRVmnK864J6qtD
K3t75OMJl8QWZ2ECaQGf7dCZJjG4HuqTGwX8L4TU1lZJPHQFSngTQmBLMxTW+c24
DQm31z2w5Tli9OVVbqer7R1LzKdTkjXLGZpW3nmmRDyW6WF7DEc/QJvR1fBvq7Jm
/Kc7eiTue1xC+d64qDbhjDr8uT2iHtJ3s0Sx2VTRHt0ELgM5+oCNaLfOsCIkFiCk
guz1rHYwu2ZqTZk0H8mwq8sCAwEAATANBgkqhkiG9w0BAQsFAAOCAQEAVfBLIUgv
R8xY5+cUN7m7SJY0p+m2COPhk00FyMq4H5gOZf/29Z9OK6auGjMsNn8KOABybs2H
CA9b4ld6HfqOINa5dqaHXqmAdOANEHK66o+P5pdfW4oqfd1XnlS0kgtHlQUtNVwy
VhXKju9Cx5WAC2eHTs4YBqYdghSgyUH2LRymQU3FO+s3AF5IP3SPorrQw4v72QXl
IzeYdYJfkFQC7Ga5ULmJrak3f2qzRGS81dt9iSmXoQBK1KbRnJje3ma7HMvjMcR5
SSGifO9IDyVzQ7NSBodZ7NUMQVeGmgHr0GkGnUOxAomrKprZFnWJmwE5DZ83LNlM
XTLGXdQSj1YkaQ==
-----END CERTIFICATE-----

 

You can decode this certificate using https://www.sslshopper.com/certificate-decoder.html 

What I doing wrong ??

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

1 Answer

0 votes

Hi,

It seems that you have a concern for communication between the client and the server, but the certificate may not be the cause ...

Did you open port 443 on the Debian server (login in https by default) ?

In the same way, the address of the server ("Server =" ...) in the file ocsinventory.ini does not include a port (??) so connecting by default to 80 port, your correct syntax would be:

Server = https://192.168.10.64:443/ocsinventory

Try this and do not forget to stop on your Windows client the "OCS Inventory Service" before modifying the ocsinventory.ini file then restart service.

Personally, the blog of Milos Zengel is a good approach for the installation of the OCS Inventory server but can be improved (not perfect on the https part)...

Regards, Stéphane

by (32.6k points)
edited by
 
Powered by Question2Answer
...