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.

agent doesn't connect to server through https

I am using ubuntu 16.04 and I am trying to do inventory using snmp protocol, in the wiki, it's mentioned that I should use https otherwise ocs won't do the inventory based on snmp

 i created ssl certificate  and now i can access the server's page through https://192.168.86.135 , it's secured and the admin consol works fine too
but when i  try to connect to the server from the agent i run into this error:

[error] Cannot establish communication : 500 Can't connect to 192.168.86.135:443 (certificate verify failed)

I don't know what to do !
in IP Discover by (160 points)

2 Answers

0 votes
Hi,

Which CN have you set in the certificate? How is defined the url in ocsinventory-agent.cfg file ?

Regards

Frank
by (90.2k points)
0 votes
Hello Frank, sorry for the late reply
the URL is defined this way : https://server_IP_address/ocsinventory

I am not using a CN , I am testing the software on VMware for an internship project
by (160 points)
SSL protocol only work with domain name. You can't use an IP address as CN in your certificat. If you don't have any DNS server, you can use the host file of your clients.
 
Powered by Question2Answer
...