Skip to content

Add per-account mTLS client certificate support (PKCS#12) - #858

Open
paolostivanin wants to merge 2 commits into
opencloud-eu:mainfrom
paolostivanin:main
Open

Add per-account mTLS client certificate support (PKCS#12)#858
paolostivanin wants to merge 2 commits into
opencloud-eu:mainfrom
paolostivanin:main

Conversation

@paolostivanin

@paolostivanin paolostivanin commented Mar 31, 2026

Copy link
Copy Markdown
Contributor

Adds per-account mTLS client certificate support.

  • Configure a client certificate for mutual TLS authentication on a per-account basis. Certificates are imported from PKCS#12 (.p12/.pfx) files and persisted in the account settings.
  • The certificate can be selected during account setup (on the server-URL page), so a server that gates access behind mTLS can be reached for the initial status.php / WebFinger / OAuth probes before the account exists — as well as per account after setup, via the account context menu.
  • CA certificates bundled in the PKCS#12 are trusted for server-chain validation.

Mirrors the Android per-account mTLS work in opencloud-eu/android#116 .

Note

The network-switch recovery fix that was previously bundled here has been split into its own PR: #969.

Tested on openSUSE Tumbleweed x86_64.

@TheOneRing

Copy link
Copy Markdown
Contributor

Could you please open a separate pr for b261cfd

Allow configuring a client certificate for mutual TLS authentication on a
per-account basis. Certificates are imported from PKCS#12 (.p12/.pfx) files
and persisted in the account settings.

The certificate can be selected at two points:
- During account setup, on the server-URL page, so a server that gates
  access behind mTLS can be reached for the initial status.php / WebFinger /
  OAuth probes before the account exists.
- Per account after setup, via the account context menu.

The setup wizard applies the certificate to the access manager used for the
probes and carries it onto the built account; any CA certificates bundled in
the PKCS#12 are trusted for server-chain validation.

Mirrors the Android per-account mTLS work in
opencloud-eu/android#116
@paolostivanin paolostivanin changed the title Add per-account mTLS client certificate support and fix network switch recovery Add per-account mTLS client certificate support (PKCS#12) Jul 8, 2026
@paolostivanin

paolostivanin commented Jul 8, 2026

Copy link
Copy Markdown
Contributor Author

All done!

  • This PR is now scoped to per-account mTLS client certificate support only. It additionally adds login-time selection (in the setup wizard) so servers that gate access behind mTLS can be onboarded before the account exists.
  • The network-switch recovery fix has been split out into its own PR: Fix account stuck in "Connecting" state after network switch #969.

@guruz
guruz self-requested a review July 22, 2026 09:54
@guruz

guruz commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

Fun fact: Commit from 2017 ... c6f4f44

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants