Sholofly / lghorizon

Custom integration to control LG Horizon settop boxes for Ziggo(NL), Magenta(AT), UPC(CH), Virgin(GB, IE), Telenet(BE)
GNU General Public License v3.0
58 stars 13 forks source link

SSL certificate expired #114

Closed sandervs1979 closed 6 months ago

sandervs1979 commented 6 months ago

Describe the bug LG Horizon integration was unable to initialize after installing HA 2024.2.2. After reading some open/closed issues in this repository, I decided to remove the HA and HACS integration to start over. After re-installing HACS LG Horizon integration, reboot HA and adding the integration in HA, I was trying to configure the integration, but after some time it gives me "Unknown error occurred". Debug logging suggests there is a SSL certificate expired, but I don't know if that's something in my setup that I can change. I hope someone can point me in the right direction. I've been a very happy user of this integration so far.

To Reproduce Steps to reproduce the behavior:

  1. Remove HA LG Horizon integration
  2. Remove HACS LG Horizon integration
  3. Reboot HA
  4. Install HACS LG Horizon integration
  5. Reboot HA
  6. Install HA LG Horizon integration + configure Ziggo, username, password
  7. "Unknown error occurred"

Expected behavior I expected the Ziggo Mediabox Next to be added as a device/ media player again in HA

Screenshots image

Version of the component 0.5.9

Logging 2024-02-19 12:01:32.599 INFO (SyncWorker_25) [lghorizon.lghorizon_api] 110 retrieved. 2024-02-19 12:01:32.600 INFO (SyncWorker_25) [lghorizon.lghorizon_api] Registering boxes 2024-02-19 12:01:32.601 INFO (SyncWorker_25) [lghorizon.lghorizon_api] Box 3Cxxxxxxxxxxxxxx07 registered... 2024-02-19 12:01:32.668 INFO (SyncWorker_25) [lghorizon.lghorizon_api] Backing off connect(...) for 64.0s (ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired (_ssl.c:1000))

Mongey commented 6 months ago

the SSL cert for https://obomsg.prod.nl.horizon.tv expired yesterday

ARC7509 commented 6 months ago

Just to confirm that I have the same issue with other provider (Telenet). Thank you.

filip-heens commented 6 months ago

same issue here. posted my logs in issue 110 yesterday evening.

JBakers commented 6 months ago

same here

2024-02-19 17:01:34.355 INFO (SyncWorker_24) [lghorizon.lghorizon_api] Retrieving channels... 2024-02-19 17:01:34.356 INFO (SyncWorker_24) [lghorizon.lghorizon_api] Executing API call to https://spark-prod-nl.gnp.cloud.ziggogo.tv/eng/web/linear-service/v2/channels?cityId=121&language=nl&productClass=Orion-DASH 2024-02-19 17:01:34.439 DEBUG (SyncWorker_24) [lghorizon.lghorizon_api] Result API call: [REDACTED] 2024-02-19 17:01:34.440 INFO (SyncWorker_24) [lghorizon.lghorizon_api] 152 retrieved. 2024-02-19 17:01:34.441 INFO (SyncWorker_24) [lghorizon.lghorizon_api] Registering boxes 2024-02-19 17:01:34.441 INFO (SyncWorker_24) [lghorizon.lghorizon_api] Box REDACTED registered... 2024-02-19 17:01:34.441 INFO (SyncWorker_24) [lghorizon.lghorizon_api] Box REDACTED registered... 2024-02-19 17:01:34.441 INFO (SyncWorker_24) [lghorizon.lghorizon_api] Box REDACTED registered... 2024-02-19 17:01:34.441 INFO (SyncWorker_24) [lghorizon.lghorizon_api] Box REDACTED registered... 2024-02-19 17:01:34.574 INFO (SyncWorker_24) [lghorizon.lghorizon_api] Backing off connect(...) for 256.0s (ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired (_ssl.c:1000))

simjogit commented 6 months ago

Home assistant in docker on Synology NAS DS920 Same problem here with Telenet. Everything worked fine until the beginning of january Since then I don't manage to make it work again.

Version 0.5.4b1: Error "Can"t connect" 2024-02-19 18:25:23.176 ERROR (MainThread) [frontend.js.latest.202305033] http://192.168.0.250:8123/config/integrations:0:0 ResizeObserver loop completed with undelivered notifications. 2024-02-19 18:35:47.716 ERROR (SyncWorker_3) [lghorizon.lghorizon_api] Giving up connect(...) after 11 tries (ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired (_ssl.c:1007)) 2024-02-19 18:35:47.717 ERROR (MainThread) [custom_components.lghorizon.config_flow] [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired (_ssl.c:1007)

Version 0.5.9: Error "Can't connect" 2024-02-19 20:32:56.138 ERROR (MainThread) [frontend.js.latest.202305033] http://192.168.0.250:8123/config/integrations:0:0 ResizeObserver loop completed with undelivered notifications. 2024-02-19 20:43:29.561 ERROR (SyncWorker_9) [lghorizon.lghorizon_api] Giving up connect(...) after 11 tries (ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired (_ssl.c:1007)) 2024-02-19 20:43:29.562 ERROR (MainThread) [custom_components.lghorizon.config_flow] [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired (_ssl.c:1007)

RobDiederen commented 6 months ago

Same problem here, stopped working yesterday after re-installing integration and removing custom_components not able to login anymore. Who needs to fix an expired certificate?

JimmyKer commented 6 months ago

Same problem here, stopped working yesterday after re-installing integration and removing custom_components not able to login anymore. Who needs to fix an expired certificate?

Organization: Liberty Global Technology Services B.V. Location: Schiphol-Rijk, Noord-Holland, NL Valid from January 17, 2023 to February 18, 2024 Serial Number: 77a92c89628fe9892aa3917c Signature Algorithm: sha256WithRSAEncryption Issuer: GlobalSign RSA OV SSL CA 2018

filip-heens commented 6 months ago

It just started working again.

Filip

sandervs1979 commented 6 months ago

Working here again as well. I will close the issue. Thanks for sharing your experiences!

RobDiederen commented 6 months ago

Same for me, works again