dahlb / ha_kia_hyundai

A Home Assistant HACS integration that supports Kia Connect(Uvo). The integration supports the USA.
MIT License
17 stars 6 forks source link

error: SSL: UNSAFE_LEGACY_RENEGOTIATION_DISABLED - unsafe legacy renegotiation disabled #153

Closed 0bmay closed 2 months ago

0bmay commented 2 months ago

Please check Services, Known Bug / Issues and Troubleshooting over here first: https://github.com/dahlb/ha_kia_hyundai/blob/master/README.md Region and Brand of car US - Kia Soul EV 2018

Describe the bug A clear and concise description of what the bug is. Module no longer loads in HA has the following error in the log file: error during setup: Cannot connect to host api.owners.kia.com:443 ssl:<ssl.SSLContext object at 0x7f298bfa8050> [[SSL: UNSAFE_LEGACY_RENEGOTIATION_DISABLED] unsafe legacy renegotiation disabled (_ssl.c:1000)], waiting 1 minute and trying again.

Debug logs if an error occurred 2024-07-22 12:49:26.107 DEBUG (MainThread) [custom_components.ha_kia_hyundai.api_cloud_util] US KIA in use 2024-07-22 12:49:26.145 DEBUG (MainThread) [kia_hyundai_api.us_kia] sending https://api.owners.kia.com/apigw/v1/prof/authUser request with {'deviceKey': '', 'deviceType': 2, 'userCredential': {'userId': '', 'password': ''}} 2024-07-22 12:49:26.275 WARNING (MainThread) [custom_components.ha_kia_hyundai] error during setup: Cannot connect to host api.owners.kia.com:443 ssl:<ssl.SSLContext object at 0x7f298bfa8050> [[SSL: UNSAFE_LEGACY_RENEGOTIATION_DISABLED] unsafe legacy renegotiation disabled (_ssl.c:1000)], waiting 1 minute and trying again.

Outlined here: https://github.com/dahlb/ha_kia_hyundai/blob/master/README.m

To Reproduce Steps to reproduce the behavior:

  1. Start HA
  2. See error

Expected behavior A clear and concise description of what you expected to happen. plugin loads and gets dat for the car..

Screenshots If applicable, add screenshots to help explain your problem.

Additional context Add any other context about the problem here.

dahlb commented 2 months ago

Looks like a platform issue, https://stackoverflow.com/questions/71603314/ssl-error-unsafe-legacy-renegotiation-disabled you might have luck following the directions in this thread.

0bmay commented 2 months ago

running HA inside of docker... made the openssl.conf point the docker environment to use the new config file and I'm still getting the error.. Capto_Capture 2024-07-22_01-37-10_PM Dunno what to do now..

mrkcrc commented 2 months ago

Just advising that I am now receiving the same error message as 0bmay. I upgraded to HA Core 2024.7.3 and after reboot the KIA integration failed to load with error: SSL: UNSAFE_LEGACY_RENEGOTIATION_DISABLED - unsafe legacy renegotiation disabled.

dahlb commented 2 months ago

thanks for filing this bug, and for chiming in @mrkcrc with your HA version information I was able to reproduce this error and will be able to work on fixing it now

dahlb commented 2 months ago

fixed with https://github.com/dahlb/kia_hyundai_api/commit/c378e13ec3507947e95f26f8c8ac202fd7a48277 released in version 1.8.13

0bmay commented 2 months ago

Thank you!