Skip to content

Allow SSL connections to older devices#1654

Merged
rytilahti merged 1 commit into
python-kasa:masterfrom
kad:rsa1024
Feb 21, 2026
Merged

Allow SSL connections to older devices#1654
rytilahti merged 1 commit into
python-kasa:masterfrom
kad:rsa1024

Conversation

@kad

@kad kad commented Feb 13, 2026

Copy link
Copy Markdown
Contributor

With recent firmware updates for older devices (like C120) the embedded SSL certificate on the deivce is RSA 1024 type, which is considered insecure nowadays.

0 s:CN=TPRI-DEVICE, O=TPRI, C=US
i:CN=TPRI-DEVICE, O=TPRI, C=US
a:PKEY: RSA, 1024 (bit); sigalg: sha256WithRSAEncryption
v:NotBefore: Jan 1 00:00:00 2001 GMT; NotAfter: Dec 31 23:59:59 2070 GMT

This fix add cipher used by TP-Link to list of allowed ones.

Related: home-assistant/core#162498

With recent firmware updates for older devices (like C120)
the embedded SSL certificate on the deivce is RSA 1024 type,
which is considered insecure nowadays.

 0 s:CN=TPRI-DEVICE, O=TPRI, C=US
   i:CN=TPRI-DEVICE, O=TPRI, C=US
   a:PKEY: RSA, 1024 (bit); sigalg: sha256WithRSAEncryption
   v:NotBefore: Jan  1 00:00:00 2001 GMT; NotAfter: Dec 31 23:59:59 2070 GMT

This fix add cipher used by TP-Link to list of allowed ones.

Related: home-assistant/core#162498
Signed-off-by: Alexander D. Kanevskiy <kad@kad.name>
@codecov

codecov Bot commented Feb 13, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.82%. Comparing base (122849f) to head (7277e03).
⚠️ Report is 13 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1654   +/-   ##
=======================================
  Coverage   92.82%   92.82%           
=======================================
  Files         157      157           
  Lines        9649     9649           
  Branches      976      976           
=======================================
  Hits         8957     8957           
  Misses        492      492           
  Partials      200      200           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@PerplexedTheta

Copy link
Copy Markdown

Yes, this fixed authentication issues I was having with my Tapo P100! Top job <3

@rytilahti rytilahti added the bug Something isn't working label Feb 21, 2026

@rytilahti rytilahti left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@rytilahti rytilahti merged commit b22917a into python-kasa:master Feb 21, 2026
18 checks passed
@kad

kad commented May 8, 2026

Copy link
Copy Markdown
Contributor Author

@rytilahti would it be possible please to cut release for python-kasa, so the HomeAssistant would be adopting it as an updated dependency?
Several issues in HA depend on it: home-assistant/core#162498 home-assistant/core#169520

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants