-
-
Notifications
You must be signed in to change notification settings - Fork 249
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
HTTP 400 when logging in to server that is secured with mTLS #4421
Comments
I looked at the code and found that there is already support for Client Certificates, in the ServerSelectionActivity: talk-android/app/src/main/java/com/nextcloud/talk/account/ServerSelectionActivity.kt Line 138 in d9bcf14
The required link is just hidden by default:
I changed that to Why is this disabled by default? Any chance this could be re-enabled in one of the next minor releases? |
@nicolashimmelmann, OFFTOPIC: Can you helpme some info about the process of generating client certificates and installing it on android mobiles ? There are a lot of improvements since september... i hope the Android Talk team release soon a new version with them. |
Hi, that's not too hard. You can either google that, or ask chatgpt, I am also no expert. However, the steps are mainly this:
Just a starting point, not sure if something is missing:
The CA and CA private key need to be added in your server config (e.g. nginx.conf).
How you roll that out to the phone is your decision (usb, email, download, ...). You need to add it under "Settings > Security > Encryption & Credentials" on Android. |
@nicolashimmelmann . Really, thank you very much for you effort!!! I get lost because I thought it must be "generated" with my recognised certified certificate provider... ;-?. And I don't have access to generate this type of client certificates from them... or I think so. In this case all are "self-signed". I will try it. Thanks. |
It works like a charm with Firefox on W11. Firefox on W11 ask for the personal client certificat. It works correctly with Brave on Android. Brave ask for the personal client certificate. But....I can't do it work with Android Talk nor Firefox/Focus on Android. No config inside FirefoxY/Focus, nor asking for the certificate. "There is some entry called "Change client certificate" in the settings once logged in, but since I need to log in first that is of no use." Inside a previously Talk account configured, the Android Talk app "account configuration" I select the personal client certificate, but it don't works too. It seems no really "selecting/activating the certificate". I will wait... for some news from the Talk Team. |
Hi, |
Steps to reproduce
mTLS works perfectly fine with the main Nextcloud app, but not with the Talk app. There is some entry called "Change client certificate" in the settings once logged in, but since I need to log in first that is of no use.
Expected behaviour
The app should use the default Android APIs to toggle the popup asking the user to select the correct client certificate, the same way the main Nextcloud app does.
Actual behaviour
Login does not work, HTTP 400 is shown. Once I deactivate Client Certification check in nginx, login works.
Device brand and model
Pixel 6
Android version
15
Nextcloud Talk app version
20.0.2
Nextcloud server version
30.0.1
Talk version
20.0.1
Custom Signaling server configured
None
Custom TURN server configured
None
Custom STUN server configured
None
Android logs
No response
Server log
No response
Additional information
No response
The text was updated successfully, but these errors were encountered: