Mac OS X agent doesn't validate server certificate for inventory upload
Bug #1056062 reported by
Cyrille Bollu
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OCS Inventory: Unified Unix Agent |
In Progress
|
Medium
|
mortheres |
Bug Description
======= CONFIG START =========
Mac OS X 2.0 beta4 agent installed
cat /etc/ocsinvento
server=https://<server>
debug=1
========CONFIG END ==========
======= STEPS TO REPRODUCE START =========
1- delete file /private/
2- start the ocsinventory agent
3- see with tcpdump/wireshark that ocsinventory agent hapilly sends its inventory over HTTPS
Optionaly
4- deploy a package to the Mac OS X agent
5 - see the "ERR_DOWNLOAD_INFO" status
======= STEPS TO REPRODUCE END =========
======= GREETINGS START =========
Cheers guys!
and thanks for this OSS
======= GREETINGS END =========
Changed in ocsinventory-unix-agent: | |
importance: | Undecided → Medium |
assignee: | nobody → mortheres (mortheres) |
To post a comment you must log in.
After further investigation with a PKI expert, we have come to the following conclusion:
1- It is normal that ocsinventory-agent can send its inventory without a local copy of the server's certificate validation chain (the so-called "cacert.pem") because (1) we are not using a self-signed certificate, and (2) Apache is configured to send the certificate validation chain to the client upon connection. With this configuration, the agent validates the certificate validation chain given by Apache up until the root certificate which is part of the OS.
2- For the same reasons, ocsinventory-agent should be able to download packages without a local copy of the server's certificate. We assume there's a bug in the part of the code doing the download.
These conclusions hold only for the Unified Unix Agent; We don't know how ocsinventory-agent behaves under Windows.
HTH,
Cyrille