Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Philips Hue root-bridge certificate #11

Open
hrdasdominik opened this issue Feb 11, 2024 Discussed in #9 · 0 comments
Open

Philips Hue root-bridge certificate #11

hrdasdominik opened this issue Feb 11, 2024 Discussed in #9 · 0 comments
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@hrdasdominik
Copy link
Owner

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?

@hrdasdominik hrdasdominik added enhancement New feature or request help wanted Extra attention is needed labels Feb 11, 2024
@hrdasdominik hrdasdominik added bug Something isn't working and removed enhancement New feature or request labels Jul 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

When branches are created from issues, their pull requests are automatically linked.

1 participant