mirror of
https://github.com/B16f00t/whapa.git
synced 2026-04-25 19:05:51 +03:00
[GH-ISSUE #200] "BadAuthentication" error reason #179
Labels
No labels
enhancement
help wanted
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/whapa#179
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @felideo on GitHub (Jul 26, 2023).
Original GitHub issue: https://github.com/B16f00t/whapa/issues/200
I have been having problems with BadAuthentication for about 3 years. Fortunately, I ever keep 2 or 3 Ubuntu versions installed on my computer, so I can use Whapa without problems in my old Ubuntu 20.04.
All this time, I have been looking for a solution, not a solution, but the reason why Whapa doesn't work in new versions of Ubuntu.
I'm a PHP developer, so I tried to venture into debugging the Python code of Whapa looking for this reason, making comparisons between Whapa installed on Ubuntu 23.04 and Ubuntu 20.04.
Finally today, after 3 years of research I found the reason.
The reason for the error: "BadAuthentication" on Whapa in new Ubuntu releases, it's that the authentication works only with OpenSSL version 1.1.1l, and on new Ubuntu releases the OpenSSL was updated to 3.0.8.
I did the test: python3 -c "import ssl; print(ssl.OPENSSL_VERSION)" in both releases of Ubuntu and that was the difference:
Ubuntu 20.04: OpenSSL 1.1.1l 24 Aug 2021
Ubuntu 23.04: OpenSSL 3.0.8 7 Feb 2023
To take prove this, I installed a release of Ubuntu 21.04, the OpenSSL version of this version it's by default 1.1.1l, so I could see the magic happen, Whapa works perfectly!
As I said I'm a PHP developer and I don't know anything else than basic Python, so I can't give a solution for this problem and make a PR, so if the developers, can solve this problem, I imagine a lot of people would give a standing ovation
Now, I have been trying to install both versions of OpenSSL on Ubuntu 23.04, to try to make some working around to make Whapa call the right version of OpenSSL.
Thanks!