Repository navigation
Conversation
KeyManager queried the database on every TLS handshake, and again for every certificate chain and private key lookup. It also got the default account via getDefaultUser(), which can change the active account as a side effect. The accounts are now kept in memory by ClientCertificateUsers and updated from a Room flow. The active account for resolving conflicting certificates on one server is taken from the cached users' current flag. KeyManager now extends X509ExtendedKeyManager so SSLEngine based connections choose the certificate by their peer as well, and the socket host fallback no longer does a reverse DNS lookup. Assisted-by: Claude Code:claude-opus-5-5 Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
The request for the app password with the one-time credentials used a new OkHttpClient without the app's KeyManager and TrustManager. On servers that require a client certificate or use a certificate trusted only by the user, it failed, so the login could not be completed. It now uses the client of the data source, which is based on the shared one. Assisted-by: Claude Code:claude-opus-5-5 Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
Contributor
馃摫 QA build
The QA build installs alongside a released Nextcloud app, so you can keep Downloading the file requires a GitHub account, so open this link on the |
Contributor
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
not yet tested!
Commit 1: fix(ssl): cache the accounts for choosing client certificates
arrives.
Commit 2: fix(login): use the shared client for the one-time password request
Testing notes:
馃弫 Checklist
/backport to stable-xx.x馃 AI (if applicable)