Thanks Sokatra for remember usage of authentification for agents.
IMHO, usage of certificate (SSL_enabled=1) is very poor, because you could get easily the certificate of any HTTPS server. But protection of account/password is also easy to setup for server and for agent. (If a guy have access to a computer, he could also copy ocsinventory.ini and continue to pollute your inventory ...)
Please consider when you deploy a change in ocsinventory.ini (using package) to change ALSO the url (and keep old url on server): the same server could be reached with different url corresponding to different ocsinventory.ini settings. So agent with old .ini could reach server as agents with new .ini settings. This is easy using virtualhost and different nameserver ... (I do this also when I change the agent version ...)
(Also, virtualhost could avoid to publish on internet /ocsreports !! Consider adjust you Apache conf files ...)