OCS Inventory NG Forums

OCS Inventory NG, an OpenSource computer inventory and package deployement system for Windows and Unix

You are not logged in.

#1 2011-12-20 02:01:57

ana.bertoldo
Member
Registered: 2011-12-20
Posts: 4

Agente não atualiza utilizando certificado auto-assinado

Olá pessoal,

Tenho um servidor com Centos e a última versão do OCS Inventory instalada. Estava funcionando normalmente sem utilização de certificado, porém por normas da empresa tive que criar um certificado.
Fiz a criação seguindo o seguinte tutorial: http://seassis.blogspot.com/2011/08/con … ry-ng.html, porém agora os agentes não enviam informações para o servidor.
No log do Agente consta o seguinte:
Starting OCS Inventory NG Agent on Monday, December 19, 2011 22:50:31.
AGENT => Running OCS Inventory NG Agent Version 2.0.3.0
AGENT => Using OCS Inventory NG FrameWork Version 2030
AGENT => Loading plug-in(s)
    PLUGIN => Searching for Plug-in DLL(s) in folder <C:\Program Files (x86)\OCS Inventory Agent\plugins>
    PLUGIN => 0 Plug-in(s) succesfully loaded
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.0.3.0>
    AGENT => Sending getLabel request
    COM SERVER => Initializing cURL library for getFile
    COM SERVER => Using cURL with 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://192.168.0.102/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 <VAIO-2011-12-19-21-32-52> and MACs <54:42:49:AD:CB:C28C:A9:82:7F:0C:168C:A9:82:7F:0C:178C:A9:82:7F:0C:17C0:F8:DA:F7:E3:2808:00:27:00:DC:0E> in file <ocsinventory.dat>
    COM SERVER => Initializing cURL library for sendRequest
    COM SERVER => Using cURL with 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://192.168.0.102/ocsinventory>
    WARNING *** COM SERVER => Failed to send HTTP Post request <Peer certificate cannot be authenticated with known CA certificates>
    COM SERVER => Cleaning cURL library

Para instalar utilizei os seguinte parâmetros: ocspackage.exe_:_Parameters: ocspackage.exe /S /server=https://192.168.0.102/ocsinventory /np /pnum:443 /debug=2 /install /now

Offline

#2 2011-12-20 09:29:59

frankb
OCS Team
From: France (Angers)
Registered: 2009-01-12
Posts: 3,644
Website

Re: Agente não atualiza utilizando certificado auto-assinado

Hi,

Have you configured correctly your ocs agent?
Can you post the content of the ocsinventory.ini file, please.

Offline

#3 2011-12-20 12:05:28

ana.bertoldo
Member
Registered: 2011-12-20
Posts: 4

Re: Agente não atualiza utilizando certificado auto-assinado

Olá,

Segue arquivo de configuração:

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

Offline

#4 2011-12-20 12:10:31

frankb
OCS Team
From: France (Angers)
Registered: 2009-01-12
Posts: 3,644
Website

Re: Agente não atualiza utilizando certificado auto-assinado

During the building of the certificate, which value have you set to CN entry? @ip or ocs servername?

Offline

#5 2011-12-20 12:48:32

ana.bertoldo
Member
Registered: 2011-12-20
Posts: 4

Re: Agente não atualiza utilizando certificado auto-assinado

Tentei com o nome da máquina e também com o ip, mas não utilizei @ antes do ip...esse parâmetro é obrigatório?

Offline

#6 2011-12-21 13:04:04

ana.bertoldo
Member
Registered: 2011-12-20
Posts: 4

Re: Agente não atualiza utilizando certificado auto-assinado

Olá,

Já tentei a criação do certificado de todas as formas e ocorre sempre o mesmo erro. Será que alguém poderia me ajudar?

Offline

Board footer

Powered by FluxBB

Serveur dédié, hébergement web, infogérance et nom  de domaine - NFrance Conseil