Skip to content
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

Network error - SSL handshake failed #310

Open
DataBeaver opened this issue Jun 22, 2022 · 6 comments
Open

Network error - SSL handshake failed #310

DataBeaver opened this issue Jun 22, 2022 · 6 comments
Assignees
Labels
bug This is indeed a bug help wanted Support is needed to proceed information needed More information is needed to address this regression Was working fine before

Comments

@DataBeaver
Copy link

SailfishOS VERSION: 3.4

HARDWARE: Jolla Jolla (the original Jolla phone)

Storeman VERSION: 0.3.0

QUESTION

I installed Storeman on my Jolla phone, but it keeps showing a network error notification. Starting it over ssh I get this output:

[D] unknown:0 - Using Wayland-EGL
[W] unknown:0 - Could not find any zN.M subdirs!
[W] unknown:0 - Theme dir "/usr/share/themes/jolla-ambient/meegotouch/z1.0/" does not exist
[W] unknown:0 - Network request error QNetworkReply::NetworkError(SslHandshakeFailedError) - "SSL handshake failed"
[W] unknown:0 - Network request error QNetworkReply::NetworkError(SslHandshakeFailedError) - "SSL handshake failed"

It doesn't tell why the handshake failed though. Sailfish 3.4 is close to two years old, so I guess it's possible the SSL library is too old. However accessing openrepos.net over https with the browser works, so this might also be something else.

STEPS TO REPRODUCE

  1. Install the Storeman installer
  2. Use the installer to install Storeman
  3. Launch Storeman
  4. Observe network errors when trying to list or search for packages
@DataBeaver DataBeaver added the question Questions and answers label Jun 22, 2022
@DataBeaver
Copy link
Author

DataBeaver commented Jun 23, 2022

This turned out to be due to a change in Let's Encrypt's root CA last year combined with an old Sailfish version which isn't getting updates to its certificates. I got it fixed with these instructions: https://gitlab.com/Olf0/guide-fix-certificate-issues-on-sailfishos/-/tree/master (method A).

@Olf0
Copy link
Member

Olf0 commented Jun 24, 2022

Still many thanks for providing a proper bug report!

As a nice extra, your report confirms that the Storeman-Installer worked fine for you.

Note for others observing similar issues on SailfishOS < 4

Please mind, that in addition to applying my [Guide] Fix certificate issues on SailfishOS, you nowadays also need OpenSSL 1.1 for “the WWW to work” (as it provides TLS 1.2), hence on SailfishOS < 4.0.1 one shall install the last release of Jolla's OpenSSL combi-package (contains OpenSSL 1.0 and 1.1), which is available at OpenRepos.

@Olf0 Olf0 self-assigned this Dec 26, 2022
@00kv
Copy link

00kv commented May 17, 2024

Doesn't seem to work on 3.4.0.24 (Jolla1). I can connect to openrepos.net with openssl, curl and browser but the app will fail with error. I remember it working ~year ago not sure what changed.

@Olf0
Copy link
Member

Olf0 commented May 17, 2024

Checked, and "yes" it also fails on my [email protected] with Storeman 0.1.8 emitting "Network error"; it was working well a few months ago, i.e. in early 2024. According to Bohdan it worked fine 20 days ago, i.e. 2024-04-26.

As my time for SailfishOS related things is very scarce, systemd logs (by journalctl), preferably with some filtering (see journalctl options), and current output of Storeman when started at the command line would be helpful to fully comprehend the issue in order to resolve it; some analysis on top of that even more so.
Please do not forget to denote device model, SailfishOS release and Storeman version used for testing.

P.S.: I observe basically the same ("TLS negotiation failed") with an older version of the XMPP-client app Conversations (the last one, which supports Android 4: 2.9.3-fcr) since the end of April 2024 (i.e. it does not connect to any XMPP-server). This may be coincidence but appears to have some aspects in common.

@Olf0 Olf0 reopened this May 17, 2024
@Olf0 Olf0 added bug This is indeed a bug help wanted Support is needed to proceed regression Was working fine before information needed More information is needed to address this and removed question Questions and answers labels May 17, 2024
@00kv
Copy link

00kv commented May 19, 2024

ok i found a solution

cd /etc/pki/tls/certs
rm *.0

some root ca expired and qt fails loading the whole store because of it ?

@00kv
Copy link

00kv commented May 19, 2024

ps. for android apps the CAs need to be added to /opt/alien/system/etc/security/cacerts/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This is indeed a bug help wanted Support is needed to proceed information needed More information is needed to address this regression Was working fine before
Projects
None yet
Development

No branches or pull requests

3 participants