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.

ERROR *** AGENT => Failed to send Prolog <Peer certificate cannot be authenticated with known CA certificates>

Bonjour à tous,

Je viens de déployer un OCS NG 2.2 sur un Ubuntu Server 14.04.

J'ai monté l'agent 2.1.1.1 sur une VM (VMware Workstation 12) Windows 7, mais le machine ne remonte pas sur OCS...

(tous les pings dans les deux sens sont OK, la VM est bridgée).

J'obtiens ceci dans les logs de l'agent, apparemment un problème de certificat, pourtant le certificat est bien installé sur le serveur, j'accède bien à mon serveur glpi et ocsreports en https. (j'ai extrait un certificat en .p12 pour générer les fichiers nécessaire à la mise en place de ce certificat sur linux).

==============================================================================
Starting OCS Inventory NG Agent on Monday, March 21, 2016 17:21:12.
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)
    DLL PLUGIN => Searching for Plug-in DLL(s) in folder <C:\Program Files (x86)\OCS Inventory Agent\plugins>
    DLL PLUGIN => 0 DLL Plug-in(s) succesfully loaded on 0 DLL(s) found
AGENT => Using network connection with Communication Server
    COM PROVIDER => Loading Communication Provider <C:\Program Files (x86)\OCS Inventory Agent\ComHTTP.dll>
AGENT => Using Communication Provider <OCS Inventory NG cURL Communication Provider> Version <2.1.1.1>
    AGENT => Sending getLabel request
    COM SERVER => Initializing cURL library for getFile
    COM SERVER => Using cURL without server authentication
    COM SERVER => Disabling cURL proxy support
    COM SERVER => Enabling cURL SSL server validation support using CA Bundle <cacert.pem>
    COM SERVER => Sending fileGet request to URL <https://serveur.mondomaine.com/ocsinventory/deploy/label>
    WARNING *** COM SERVER => Failed to send HTTP Get request <Peer certificate cannot be authenticated with known CA certificates>
    COM SERVER => Cleaning cURL library
    AGENT => Failed to retrieve Label <Peer certificate cannot be authenticated with known CA certificates>
AGENT => Sending Prolog
    DID_CHECK => Read DeviceID <LAB-IT-PC-2016-03-17-16-07-45> and MACs <00:0C:29:AB:4D:87E4:F8:9C:54:77:EC> in file <ocsinventory.dat>
    COM SERVER => Initializing cURL library for sendRequest
    COM SERVER => Using cURL without server authentication
    COM SERVER => Disabling cURL proxy support
    COM SERVER => Enabling cURL SSL server validation support using CA Bundle <cacert.pem>
    COM SERVER => Sending HTTP Post request to URL <https://serveur.mondomaine.com/ocsinventory>
    WARNING *** COM SERVER => Failed to send HTTP Post request <Peer certificate cannot be authenticated with known CA certificates>
    COM SERVER => Cleaning cURL library
ERROR *** AGENT => Failed to send Prolog <Peer certificate cannot be authenticated with known CA certificates>
AGENT => Unloading communication provider
AGENT => Unloading plug-in(s)
AGENT => Execution duration: 00:00:00.

Auriez-vous une idée d'où peux venir le problème ?
in OCS Inventory NG agent for Windows by (120 points)

1 Answer

0 votes

Bonjour,

J'ai exactement le même problème avec un OCS NG 2.3.1 sur un Ubuntu server 16.04.

J'ai généré un certificat dont l'authorité de certification est interne à mon entreprise (mais il ne s'agit pas d'un certificat auto-signé). Je l'ai déposé dans le dossier /etc/ssl/private de mon serveur et je l'ai également déclaré dans le fichier "default-ssl.conf". 

Grâce à cela j'accède bien en HTTPS à l'interface d'administration "ocsreports", et pourtant je ne parviens pas à faire remonter les inventaires en https...malgré le fait que cela fonctionne parfaitement en HTTP.

J'utlise l'agent OCS 2.3.1.1 sur un Windows10 (v1511) dont voici le fichier de config:

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

Le certificat "cacert.pem" est l'exact certificat que j'ai précedemment généré, renommé et copié dans le dossier "ProgramData\OCS Inventory NG\Agent ".

Lorsque je lance un inventaire mon fichier "OCSinventory.log" est en tous points identique à celui de dazni....Avez-vous trouvé d'où vient le problème depuis le temps? 

by (240 points)
 
Powered by Question2Answer
...