Philips Hue root-bridge certificate
Opened this issue · 0 comments
Discussed in #9
Currently fetching the data from the bridge using the Discovery (HTTPS) gives a warning about the CA certificate now being used in the request. Just adding the CA certificate that Philips gives is not enough for the requests library. Hence, a custom adapter needs to be created that will work with the requests library and solve the problem.
For more instructions on how HTTPS needs to be set up check the Philips Hue dev page: https://developers.meethue.com/develop/application-design-guidance/using-https/
Originally posted by JohnConnett February 9, 2024
I have been trying to use Hue Entertainment PyKit but have been hitting problems with InsecureRequestWarning: Unverified HTTPS request is being made to host '192.168.199.25'. For example, I see it when running example/example.py
from the github repository.
On Ubuntu, I have installed the root-bridge certificate as /usr/local/share/ca-certificates/Philips-Hue-root-bridge.crt
and run sudo update-ca-certificates
. There is a symlink /etc/ssl/certs/Philips-Hue-root-bridge.pem
that points to the certificate. I copied the certificate from my bridge and that is verified by openssl verify bridge.pem
.
Is there somewhere else I should be installing the root-bridge certificate?
Do I need to configure a certificate path or file in Hue Entertainment PyKit?