desktop icon indicating copy to clipboard operation
desktop copied to clipboard

[Bug]: SSL Handshake Error on Windows 10 with Client 3.16.0

Open m3g33 opened this issue 1 year ago • 8 comments

⚠️ Before submitting, please verify the following: ⚠️

Bug description

After upgrading to client 3.16.0, the client no longer connects to my Nextcloud server due to an SSL error.

E.g., using a fresh installation, I get the message:

Failed to connect to Nextcloud at https://REDACTED/; SSL handshake failed: Handshake failed: An unsupported function was requested.

From the logs, I get:

SslHandshakeFailedError: "SSL handshake failed: Handshake failed: An unsupported function was requested" : can be caused by a webserver wanting SSL client certificates

and

QNetworkReply::SslHandshakeFailedError "SSL handshake failed: Handshake failed: An unsupported function was requested" QVariant(Invalid)

Steps to reproduce

  1. Start Nextcloud (not logged-in)
  2. Click "Login"
  3. Enter URL https://REDACTED
  4. Click "Next >"
  5. Click either "Retry unencrypted over HTTP (insecure)" or "Configure client-side TLS certificate"

(see screenshots below)

Expected behavior

When logged in: The client connects after starting the app and the Nextcloud app icon shows the "tick" symbol.

When not logged in: After clicking "Next >", the client opens a web browser to log in.

Which files are affected by this bug

20250311_1217_nextcloud.log.0

Operating system

Windows

Which version of the operating system you are running.

Windows 10 22H2 19045.5555

Package

Official Windows MSI

Nextcloud Server version

30.0.6.2

Nextcloud Desktop Client version

3.16.0

Is this bug present after an update or on a fresh install?

Updated to a major version (ex. 3.3.6 to 3.4.0)

Are you using the Nextcloud Server Encryption module?

Encryption is Disabled

Are you using an external user-backend?

  • [ ] Default internal user-backend
  • [ ] LDAP/ Active Directory
  • [ ] SSO - SAML
  • [ ] Other

Nextcloud Server logs


Additional info

This happens only on Windows 10. Client 3.16.0 works fine on both Windows 11 and macOS. I already tried using a VPN and different DNS server. Also, this only happens with my self-hosted instance on a Synology NAS with a Let's Encrypt certificate. I created a test account on The Good Cloud. The URL https://use08.thegood.cloud works without issues on Windows 10.

Image

Image

The client logs:

debug_ssl_handshake.zip

m3g33 avatar Mar 11 '25 11:03 m3g33

We have the same issue. Windows 11 and macOS are working, Windows 10 not. It was also reported here: https://help.nextcloud.com/t/win-client-disconnected-from-server-after-update-to-3-16/219658

limatus avatar Mar 11 '25 12:03 limatus

Looks to me like this is an issue with Qt's schannel TLS backend... it indeed does not implement some functions

Can you give this daily build a try? It includes Qt's openssl TLS backend again: https://download.nextcloud.com/desktop/daily/windows/windows-20250311.msi

nilsding avatar Mar 11 '25 12:03 nilsding

This build fixes the bug for me!

m3g33 avatar Mar 11 '25 12:03 m3g33

I have the same issue and reported it in the Nextcloud help forum (the post of @limatus above contains the link).

This seems to be a clear regression. Will this be fixed in 3.16.1?

geppi avatar Mar 11 '25 12:03 geppi

@m3g33 perfect!

@geppi yes, the fix will be part of 3.16.1. Right now you can test it using the daily build posted above

nilsding avatar Mar 11 '25 12:03 nilsding

@nilsding That's good news. Thank you!

geppi avatar Mar 11 '25 13:03 geppi

@nilsding, I also confirm: the daily build fixed it for us!

limatus avatar Mar 11 '25 14:03 limatus

awesome! I'll close this issue then.

nilsding avatar Mar 11 '25 16:03 nilsding