-
-
Notifications
You must be signed in to change notification settings - Fork 31.1k
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
ELK M1 devices need OP_LEGACY_SERVER_CONNECT with openssl3+ (HA 2023.5.x+) #92467
Comments
Hey there @gwww, @bdraco, mind taking a look at this issue as it has been labeled with an integration ( Code owner commandsCode owners of
(message by CodeOwnersMention) elkm1 documentation |
I'm facing the same error message with a totally different (custom) integration. I suspect there has been a library update for the SSL libraries used in HA which has caused this. In any case, the actual root cause is the HTTPS server is not that secure. |
I suspect this is probably the case. I reloaded 2023.4.6 and am still having the same issue, so I guess the ssl libraries weren't under the same snapshot that was created during the update. I did find a minor firmware update for my ethernet device on the M1XEP and am trying it now. |
Looks like they decided not to back port the option in cpython |
The raw value is 0x4 So ssl_context.options |= 0x4 |
cpython 3.12.0 alpha 4 and later have the new flag Since it's due to be released in a few months and ha won't likely upgrade for a year or so the flag to turn it off likely won't be available for another year |
I think we are stuck with the horrible hack of using the raw value |
Its the new openssl version that broke this AFAICT |
Can confirm the breakage is openssl related after upgrading my production install's openssl |
breakage is caused by openssl3 |
downgrading openssl fixes the issue |
workaround is to connect without secure port.. thats not so great though |
gwww/elkm1#69 will fix it by manually flipping the legacy flag |
changelog: gwww/elkm1@2.2.1...2.2.2 fixes #92467
changelog: gwww/elkm1@2.2.1...2.2.2 fixes #92467
changelog: gwww/elkm1@2.2.1...2.2.2 fixes #92467
The problem
ELK M1 integration was working perfect on the newest release before 2023.5.0. Immediately after updating, entities associated to ELK M1 not responding and integration says it can't connect to the M1. Error in log is listed below.
What version of Home Assistant Core has the issue?
2023.5.0
What was the last working version of Home Assistant Core?
2023.4.6
What type of installation are you running?
Home Assistant OS
Integration causing the issue
ELK-M1 Control
Link to integration documentation on our website
https://www.home-assistant.io/integrations/elkm1/
Diagnostics information
No response
Example YAML snippet
No response
Anything in the logs that might be useful for us?
Additional information
No response
The text was updated successfully, but these errors were encountered: