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

[Bug]: SSL client certificate broken with 3.12.2 connection wizard #6584

Open
4 of 8 tasks
k-neon opened this issue Mar 26, 2024 · 7 comments
Open
4 of 8 tasks

[Bug]: SSL client certificate broken with 3.12.2 connection wizard #6584

k-neon opened this issue Mar 26, 2024 · 7 comments

Comments

@k-neon
Copy link

k-neon commented Mar 26, 2024

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

Bug description

The Nextcloud Connection Wizard can't proceed with the account creation because it shows a 400 Bad Request error where the web server does not receive the SSL client certificate. It ist not possible to add the account.
This worked perfectly with the previous 3.9.3 client, but now with 3.12.2 it no longer works.

Steps to reproduce

  1. Add a new account (Account -> Add new)
  2. Click "Log In" button
  3. Add Server Address
  4. Click on "Configure client-side TLS certificate"
  5. Load pkcs12 client-side cert and enter cert password
  6. Now appears the error
    • Failed to connect to Nextcloud at https://????.com
      Server replied “400 Bad Request” to GET https://????.com/status.php”
    • Could not load certificate. Maybe wrong password?

Expected behavior

It should be possible to add a new account to the client through the Nextcloud Connection Wizard which has an SSL client certificate in order connect to the Nextcloud server which requires client certificate authentication.

Which files are affected by this bug

not files

Operating system

Windows

Which version of the operating system you are running.

Win 11

Package

Other

Nextcloud Server version

27.1.7

Nextcloud Desktop Client version

3.12.2

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

Fresh desktop client install

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

No response

Additional info

No response

@e-cite
Copy link

e-cite commented Apr 9, 2024

Could this be related to #863 ?

@freebeat
Copy link

Same issue here, except that I don't see the 400 Bad Request error. I tried this on 3.12.3stable-Win64 and also on 3.12.3 on ubuntu.

@camilasan camilasan self-assigned this Apr 16, 2024
@camilasan
Copy link
Member

I assigned myself to investigate this, didn't reproduce this yet.

@functionpointer
Copy link

Should pretty easy to reproduce. All that's needed is nginx with TLS client authentication. Then try to add an account:
image

@functionpointer
Copy link

I found another bug: When HSTS is configured, the dialog for entering client certificate doesn't appear at all.

@WinkelB
Copy link

WinkelB commented Jun 25, 2024

#6493
Yesterday, I had no problems logging into the desktop app with mTLS settings enabled. However, I can confirm that I'm also experiencing issues with HSTS enabled.

@pepramon
Copy link

pepramon commented Dec 26, 2024

Same here with Arch Linux client (version 3.15.2) working with gnome.

I can connect if I disable HSTS from the server. The client asks for the client key, connects, syncs, etc...

BUT when I restart the computer or Nexcloud client sync app, can not connect and appears the error I have configured if the auth fails. Is like not store client key and certificate.

Any idea?

It's necessary I open a new issue? (different version, different oss, etc...)

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

No branches or pull requests

9 participants