-
Notifications
You must be signed in to change notification settings - Fork 0
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
SSL Error in Docker or Java #18
Comments
Hi! This error seems to indicate that Hue Scheduler could reach the given IP address but failed to create a secure connection. Just to make sure the bridge is running an up-to-date firmware version, can you open the following address in your browser: You should get something like this as a response: Please note that Hue Scheduler only supports the Hue Bridge v2 (the square one). Furthermore, you could also open https://192.168.1.xx and ignore the certificate warning in the browser and then open the certificate details of the page (depends on your browser on how to do this). You should see something similar to this: |
Hi, everything with my bridge seems valid: Don't know what to do. |
This is strange. You're running the same bridge firmware and API version, so I'm not sure why the connection is failing. Just to make sure Hue Scheduler is attempting to connect to the correct device, you could try using the last version that didn't use HTTPS: https://github.com/stefanvictora/hue-scheduler/releases/tag/v0.7.1.1 If this version works correctly, it confirms that the issue is related to certificates. |
0.7.1.1 Seems to "work"! An error is now on the config side: |
Now the InvalidPropertyValue issue is due to the usage of |
Thanks! Now it works with 0.7.1.1 I really don't know where the problem with the certificate comes from. |
That is good to hear that the connection should work in theory with the new version! I had a closer look at your certificate screenshot again and noticed that your bridge seems to have a self-signed root certificate and not one issued by Philips Hue. Which, according to the Hue developer documentation (requires login), can be identified by the CN of the issuer:
This is exactly the case for your bridge: Normally this should be "root-bridge" if the certificate is signed by Signify. I added a new Let me know if this fixes your issue! |
I'm getting this error when launching hue-scheduler through docker or java:
The input:
java -jar /Users/USER/Docker/Hue-Scheduler/hue-scheduler.jar 192.168.1.xx FYDk3f14prvOlepXXXXXXqLpZOLYzKArfkDNCZa --lat=48.XXX --long=9.XXX --elevation=XXX /Users/USER/Docker/Hue-Scheduler/input.txt
The error:
jSLF4J(I): Connected with provider of type [ch.qos.logback.classic.spi.LogbackServiceProvider] 2024-12-18 16:45:49,176 [events] - An error occurred during event stream processing: javax.net.ssl.SSLHandshakeException: (certificate_unknown) PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target 2024-12-18 16:45:49,225 [init] - Failed 'Request{method=GET, url=https://192.168.1.XX/clip/v2/resource/light}' javax.net.ssl.SSLHandshakeException: (certificate_unknown) PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
and then this error:
Api not reachable: '(certificate_unknown) PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target'. Retrying in 5s.
Please help
The text was updated successfully, but these errors were encountered: