Where Nextcloud uses cryptography: protocols and keys

Nextcloud uses cryptography in HTTPS, password hashing, server-side and end-to-end encryption, mail and federation TLS, app signing and updates. This entry maps each area so you can build an inventory record for it.

On this page

Where does Nextcloud use cryptography, and why record it now?

An inventory owner needs a complete list of Nextcloud's cryptographic uses before any post-quantum migration decision can be made. The record should cover six areas: protocols (HTTPS, HSTS, SMTP TLS, the updater endpoint and federated shares), certificates (the server certificate and the X.509 certificates used by end-to-end encryption clients), keys (server-side encryption master keys, per-file keys and end-to-end encryption key pairs), management access (admin logins, password hashing and the openssl and CA bundle settings), firmware and updates (app code signing and update verification), and integrations (Talk TURN secrets and any external services that terminate TLS). Each area should name the component, the algorithm the sources describe and the configuration key or setting that controls it.

The checked sources do not document a TLS cipher list or minimum TLS version for Nextcloud. The admin hardening guide tells operators to use HTTPS and points to the Mozilla SSL Configuration Generator, so the actual cipher suites come from the web server in front of Nextcloud. The Talk TURN documentation also omits TLS and media encryption details for the TURN and signaling servers. The sources also contain no statement on post-quantum support, and the open GitHub issue 61484 on this subject had no assignee or linked work when fetched. Confirm the TLS configuration with the web server's own documentation and with Nextcloud support, and record the answer as unknown where the vendor is silent.

Record the inventory now because several public-key dependencies are documented in the sources, including RSA key sealing for server-side encryption, RSA-OAEP and X.509 for end-to-end encryption, and RSA for code signing. The record should be owned by the team that runs the Nextcloud server, with the security lead reviewing it. Include the server version you checked, such as 35.0.3 as listed on the changelog page on the date you read it, and note that the settings can change between releases. Re-check the record at each upgrade and whenever the vendor publishes a new notice.

Which Nextcloud areas use cryptography, and what each protects

This table lists each Nextcloud area that uses cryptography, what it protects, the algorithm family the sources name, whether it depends on public-key algorithms, and where it is configured. Read the last two columns together: an area that depends on public keys is where a post-quantum change would have to start, while areas marked as not documented need confirmation with Nextcloud before any inventory is closed. The main takeaway is that most of the stack depends on RSA or X.509 certificates, and the sources list no post-quantum support in any area.

AreaWhat it protectsAlgorithm family named in sourcesDepends on public-key algorithmsWhere configured
HTTPSTraffic between clients and the Nextcloud web serverNot documented in the sources listed on this page. Certificates from a commercial CA or Let's Encrypt are recommendedYes, through the server certificateWeb server configuration; the hardening guide says to leave HTTPS setup to the web server
Password hashingStored user password hashesArgon2id preferred, with Argon2i and bcrypt as fallbacksNohashing_default_password and hashingCost in the config reference
Server-side encryptionFile contents at rest, using server-held keysAES-256-CTR for files, SHA256-HMAC for integrity, SHA256-PBKDF2 for password-derived keys, RSA for sealing file keys to user public keysYes, RSA key pairs (4096-bit in the master-branch source)occ commands such as encryption:enable; the encryption app
End-to-end encryptionFile and metadata keys, client to clientRSA-OAEP with SHA-256 for metadata keys, AES-GCM with 128-bit keys, PBKDF2-HMAC-SHA256 at 600,000 iterationsYes, RSA-OAEP and X.509 client certificatesClient and server settings in the end-to-end encryption app; defined in the E2EE RFC version 2.1
Mail TLSSMTP sessions carrying Nextcloud emailNot named in the sources listed on this page beyond SSL/TLSYes, through the SMTP server certificatemail_smtpsecure in the config reference; default is an empty string, and ssl enables SSL/TLS
Federated sharesShares and requests between Nextcloud serversCertificate-based TLS; the sources do not name the algorithmsYes, through server certificatessharing.federation.allowSelfSignedCertificates, which defaults to false
Talk TURNRelay for Talk calls through the TURN serverNot documented in the sources listed on this page for media encryption (DTLS or SRTP) or for TLS on TURN and signalingNot documented in the sources listed on this pageTURN secret and turn: and turns: server entries in the Talk settings
App signingIntegrity and origin of installed appsSHA-512 file hashes and X.509 certificates; RSA 4096-bit key in the example CSRYes, X.509 and RSACode signing root authority shipped with each release; signature.json in each app
Update channelIntegrity and origin of server updatesHTTPS endpoint; the sources do not name the signature algorithm for updatesYes, through the HTTPS server certificateupdater.server.url, which defaults to

Which protocols Nextcloud terminates or originates

Nextcloud handles public-key cryptography at several network boundaries: the web server, outgoing mail, federated sharing, update checks and Talk media relays. Each boundary is controlled by a different layer, so an inventory has to record the setting that selects its behaviour as well as the protocol itself.

HTTPS served through the web server

Nextcloud's hardening guide says to always use HTTPS on production servers and to redirect HTTP to HTTPS with a 301. HTTPS itself is set up by the web server, not by Nextcloud, so the TLS versions, cipher suites and certificate chain come from the web server's configuration. The guide gives no TLS version or cipher list and points to the Mozilla SSL Configuration Generator. Check the web server, not the Nextcloud config, when you inventory these algorithms. The HSTS example uses Strict-Transport-Security with max-age=15552000 and includeSubDomains.

Hardening guide

SMTP with TLS

Nextcloud sends mail to your SMTP server, and mail_smtpsecure selects whether that connection uses SSL/TLS. The default is an empty string, which means no SSL/TLS is configured, and ssl enables it. The certificate and key exchange are handled by the PHP and system OpenSSL stack and by the mail server. Confirm the value on each instance, since an empty setting leaves the connection unprotected by this option.

Config reference

Federated sharing requests

Federated shares send requests between Nextcloud servers over HTTPS, so each server's certificate is checked against the trusted CA bundle. The setting sharing.federation.allowSelfSignedCertificates defaults to false, which rejects self-signed certificates on federated shares. Setting it to true lets shares work with peers that use self-signed certificates, and that choice should be recorded and reviewed. The CA bundle used for these checks is set by default_certificates_bundle_path.

Update server connection

The updater contacts an HTTPS endpoint to check for new releases. The default value of updater.server.url is ` Changing this URL points the updater at another server, which changes what your instance trusts for update checks. The sources do not describe how update packages themselves are signed beyond the app code signing process, so confirm the signing and verification path with Nextcloud before you rely on it for update integrity.

Config reference

Talk TURN and signaling

Talk uses a TURN secret and turn: and turns: server entries to relay calls through a TURN server. The Talk TURN documentation does not describe how TLS is set up for the TURN or signaling servers, and it does not describe DTLS or SRTP media encryption. Record the TURN and signaling servers as separate items in your inventory, and confirm their TLS and media encryption with the vendor or your own configuration.

Talk TURN docs

Which certificates and keys Nextcloud holds, by use

The web server certificate authenticates the Nextcloud host to browsers, sync clients and mobile apps over HTTPS. The source installation guide says plain HTTP works but is strongly discouraged, and recommends a certificate from a commercial CA or Let's Encrypt over a self-signed one. The certificate and private key live on the web server, not inside Nextcloud, so they are issued and rotated by whoever administers that server.

  • Commercial CA or Let's Encrypt: The guide recommends either, and the web server (for example Apache or nginx) presents the certificate and holds the private key on disk.
  • Self-signed: Acceptable for testing, but clients must trust it manually, which the guide's recommendation implies is weaker for production.
  • Snap install: Snap installs include automated HTTPS through Let's Encrypt or a self-signed certificate, so renewal happens inside the package.
  • Rotation: The administrator who runs the web server replaces the certificate, since Nextcloud itself does not generate it on other installs.
  • HSTS and redirects: The hardening guide says to redirect HTTP to HTTPS with a 301 and gives an HSTS example with max-age=15552000 and includeSubDomains, with preload optional.

Check which certificate authority, key size and signature algorithm your web server uses, because the sources do not state them for Nextcloud and they depend on your server configuration.

How administrators and tools reach Nextcloud, and what protects each path

Administrators and tools reach a Nextcloud server through three paths: the web interface and API over HTTPS, the occ command line on the server itself, and the TURN service that Nextcloud Talk uses for calls. For the web interface and API, the hardening guide says to always use HTTPS on production servers, to redirect HTTP to HTTPS with a 301, and to leave the TLS setup to the web server. The guide gives no TLS version or cipher suite list and points to the Mozilla SSL Configuration Generator, so the protocol versions and ciphers you actually run are set in your web server configuration and should be recorded from there. The hardening guide's example HSTS header is Strict-Transport-Security with max-age=15552000 and includeSubDomains, and it describes adding preload as optional. Confirm that the header is present on your deployed responses and that every hostname it covers serves HTTPS.

The sources do not describe management-plane TLS beyond the web server. They do not say how administrative sessions, SSO admin consoles or any separate admin interface are secured, and they do not describe a dedicated admin port. Confirm the admin access paths in your own deployment, including who can reach the server over SSH, which web routes expose administrative functions, and whether any of them bypass the web server's TLS configuration. The occ command line runs on the server and is reached through the host's own login and shell access, so its protection depends on how you control those logins rather than on any Nextcloud TLS setting. The sources name several occ commands used for server-side encryption, such as encryption:enable and encryption:encrypt-all, which means host access is effectively administrative access to those keys.

The Talk TURN secret is the third path to record. The Talk TURN docs describe a TURN secret setting and turn: and turns: server entries, but they do not describe TLS setup for the TURN or signaling servers, or DTLS or SRTP media encryption. Treat the TURN secret as a credential to inventory and rotate under your own procedures, and confirm with your deployment whether the turns: entries are in use and how the TURN server itself is secured. Record each of the three paths with its owner and the controls you have verified, and note where the sources were silent so the gap can be closed with the vendor or your own testing.

How Nextcloud signs and delivers its updates and apps

Nextcloud delivers server updates and apps through a small set of signing and distribution mechanisms, each with its own key material and trust root. Read together, these cards show which public keys sit in the update path, which parts the vendor controls, and what a customer can record but not change.

Update server endpoint

By default, the server's updater looks for new releases at an HTTPS endpoint set in the updater.server.url configuration key. The default value is Record this value from your own installation, because a changed URL changes where your update checks go. Confirm the value in config.php on each server and note whether any proxy or firewall rule touches that path.

Config reference

App signing with X.509 certificates

Apps are verified with an X.509 certificate approach. Each app carries a signature.json file that lists SHA-512 hashes of its files. The signing certificate must be issued by the Nextcloud Code Signing Root Authority. Check which apps on your servers carry signatures and confirm that unsigned or self-signed apps are not installed in production.

Code signing docs

The 4096-bit RSA key in signing requests

The example certificate signing request in the code signing documentation uses a 4096-bit RSA key. This is the public-key algorithm that anchors app signature trust in the examples the vendor publishes. Note this key size in your cryptographic inventory as the documented example. Confirm with the vendor which key type and size the production signing certificates actually use, since the sources listed here do not state it.

Code signing docs

Signing root shipped with each release

The Nextcloud Code Signing Root Authority ships with each release of the server, so the trust anchor your installation uses comes from the version you install. Record the server version and the root that version contains. When you upgrade, check whether the root has changed, because that change affects which app certificates verify.

Code signing docs

Vendor control of signing and channels

Nextcloud controls the signing root and the release channel that delivers updates and apps. Customers record these elements but cannot change them. Treat them as vendor-managed dependencies in your inventory, and ask Nextcloud in writing how it rotates the signing root, handles compromise and announces changes to the release channel.

Which fields to record for each Nextcloud cryptographic item

This table lists the fields to capture for every Nextcloud cryptographic item, such as a TLS endpoint, server-side encryption key, end-to-end encryption certificate or app signing certificate. Each row gives the field and where its value comes from, so you can fill in the record from the admin guides, config files and your own environment. Record the server version at the time of reading, since the changelog lists 35.0.3 as the latest release as of December 4, 2026, and confirm each value against your deployment.

FieldWhat to recordWhere the value comes from
Product and lineNextcloud server, Hub line (for example Hub 26 Summer), and editionThe About page names the product Nextcloud Hub. Map the server version to its Hub line using the changelog.
Server versionExact version, for example 35.0.3 as read on December 4, 2026Run occ status or check the admin overview. The changelog lists 35.0.3 dated November 12, 2026 as the latest release.
OwnerNamed team or person accountable for the itemYour internal ownership records. The Nextcloud documentation does not assign owners.
LocationHost, config file path or app where the item livesconfig.php for config.php settings, the encryption app for server-side keys, and the web server config for HTTPS.
Protocol or functionHTTPS, SMTP TLS, federated shares, end-to-end encryption, TURN, app signing or updaterThe hardening guide, config reference and Talk TURN docs name each protocol or function.
Algorithm and key sizeFor example RSA key size, AES-256-CTR, SHA-512, or PBKDF2 iterationsThe server Crypt.php file sets AES-256-CTR and 4096-bit RSA keys, and the code signing docs set SHA-512. Confirm the live value in your deployment, since the docs may not state the key size of every item.
Certificate issuer and expiryIssuing CA and notAfter date for each TLS, client or signing certificateRead the certificate with your TLS tooling. The source installation guide recommends a commercial CA or Let's Encrypt over a self-signed certificate.
Configurable or vendor-fixedWhether an admin can change the value or the vendor sets itThe config reference lists configurable keys such as hashing_default_password and mail_smtpsecure. Algorithms in the encryption app and code signing are fixed by the release.
Confidentiality lifetimeHow long the protected data must stay confidentialSet this with your data owners and records policy. Nextcloud does not define it.

Which Nextcloud cryptographic items depend on public-key algorithms

Several Nextcloud cryptographic items depend on public-key algorithms, and each needs its own entry in a cryptographic inventory. The first is server-side encryption. When the encryption app's master key mode is active, which has been the default since Nextcloud 13, the server generates a key pair with openssl_pkey_new() and seals each file key to the recipients' public keys with openssl_seal(). On the master branch, Crypt.php sets private_key_bits to 4096 for RSA key generation, but the admin documentation does not state a key size, so confirm the value in the release you run rather than relying on the docs. The file contents themselves use AES-256-CTR by default with SHA256-HMAC integrity, which are symmetric and SHA-2 based.

The second group is end-to-end encryption and code signing. The end-to-end encryption RFC, version 2.1, wraps metadata keys with RSA-OAEP using SHA-256, relies on X.509 client certificates with trust on first use, and uses AES-GCM with 128-bit keys for file and metadata encryption. App code signing uses X.509 certificates issued under the Nextcloud Code Signing Root Authority, with a 4096-bit RSA key in the example signing request, and SHA-512 file hashes in signature.json. Administrators should confirm which of these certificates and key sizes apply to their installed apps and client versions.

The third group is transport and federation. Nextcloud's hardening guide requires HTTPS on production servers and leaves TLS configuration to the web server, so certificate and cipher choices sit with that component, which is covered on its own pages. SMTP TLS is enabled through mail_smtpsecure, which defaults to an empty string, so the mail setting must be checked per deployment. Federated shares rely on certificates, and sharing.federation.allowSelfSignedCertificates defaults to false. The Talk TURN documentation does not describe TLS or DTLS media setup, so confirm those with the vendor. For the RSA and elliptic-curve dependency detail and the stronger settings that exist today, see the sibling page on which Nextcloud functions depend on RSA and elliptic-curve keys.

How to gather the Nextcloud cryptographic inventory yourself

This sequence collects the settings, certificates and key-handling options that show where a Nextcloud deployment depends on cryptography today. The output is a dated record that security and vendor-risk teams can check against the vendor's own documentation.

  1. Record the server version from the admin overview

    Sign in as an administrator and open the Overview page in the admin settings, then write down the exact server version shown there. Compare it with the latest release listed on the Nextcloud changelog page on the date you run the inventory, which as of December 4, 2026 listed server version 35.0.3, dated November 12, 2026, in the Hub 26 Summer line. Every later step depends on this version, because settings and defaults can differ between releases. This step is complete when the version, the date you read it and the changelog line you compared against are all recorded together.

  2. Export config.php and read the crypto settings

    On the server, copy config/config.php from the Nextcloud installation directory to a secure location, since it can contain secrets. Check the openssl, default_certificates_bundle_path, mail_smtpsecure, hashing_default_password, hashingCost and updater.server.url values. If a key is absent, record that it is absent and the documented default, which the config reference lists as false for hashing_default_password, 10 for hashingCost, an empty string for mail_smtpsecure and the shipped CA bundle for default_certificates_bundle_path. This step is complete when every key is recorded as either set to a value or confirmed absent.

  3. Confirm the master key mode with occ

    Run php occ encryption:status from the Nextcloud installation directory as the web server user to confirm whether server-side encryption is enabled and which key mode is in use. The sources say master key mode has been the default since Nextcloud 13, with keys held on the server, so a different result should be investigated and recorded. Note whether encryption is enabled at all, because the server-side encryption user manual says only file contents are encrypted, not filenames, folder structure, previews or the search index. This step is complete when the occ output is saved with the date it was run.

  4. List certificates on the web server and SMTP host

    Inspect the TLS certificate presented by the web server that terminates HTTPS, and the certificate presented by the SMTP host configured in mail_smtpsecure, if email is used. For each, record the subject, issuer, key type, key size and expiry date using your own tooling, such as openssl s_client or your certificate inventory system. Also note whether the certificate is from a commercial CA, Let's Encrypt or self-signed, since the source installation guide recommends a commercial CA or Let's Encrypt over a self-signed certificate. The sources do not state the TLS version or cipher suite policy Nextcloud expects, so record what the web server actually negotiates and check the Mozilla SSL Configuration Generator referenced in the hardening guide. This step is complete when each certificate has its own dated record.

  5. Review Talk TURN settings

    If Nextcloud Talk is installed, review the TURN secret setting and each turn: and turns: server entry configured for it. The Talk TURN documentation describes these entries but does not describe TLS setup for the TURN or signaling servers, nor DTLS or SRTP media encryption. Record each configured TURN host, its scheme and whether a TLS certificate is in use, and treat the media encryption question as open until the vendor answers it. This step is complete when the Talk entries are recorded with the open questions marked.

  6. Send the vendor the open questions

    Write down everything the sources leave unanswered and send it to Nextcloud. Include TLS version and cipher suite policy for the server, whether Talk encrypts media with DTLS or SRTP, whether any post-quantum algorithm is supported in your version and edition, and the key size used for RSA in your deployment. Reference the open GitHub issue 61484 on post-quantum readiness, which as of the fetch had no assignee, milestone or linked pull request, so you can ask whether it has since changed. Ask for answers in writing, tied to your server version, and file them with the inventory. This step is complete when the question list has been sent and the reply date is recorded.

What do engineers and vendor-risk reviewers ask about the Nextcloud inventory?

Is Nextcloud quantum safe?

The sources checked for this page do not show that Nextcloud supports any post-quantum algorithm. The Nextcloud admin hardening guide, the server-side encryption docs and the configuration reference do not document ML-KEM key exchange or ML-DSA or SLH-DSA signatures, and no setting that enables them was found. The open GitHub issue #61484, opened June 21, 2026, asks for post-quantum readiness and proposes hybrid ML-KEM and ML-DSA, but as of the fetch it had no assignee, no milestone and no linked pull request. Record Nextcloud as using classical public-key algorithms (RSA and elliptic-curve based certificates and key sealing) until the vendor documents otherwise. Treat that as a point to confirm with Nextcloud GmbH before you sign off on the inventory, because the sources can go out of date.

Which Nextcloud version should we record in the inventory?

Record the exact server version you run, read from the installed instance, not the latest version listed online. The Nextcloud changelog page listed server version 35.0.3, dated November 12, 2026, as the latest release in the Hub 26 Summer line when it was read on December 4, 2026. It also mapped Nextcloud 34 to Hub 26 Spring and Nextcloud 33 to Hub 26 Winter. Record the server version, the Hub release name if your team uses it, the PHP version and the web server version, because the TLS and password-hashing behavior depends on those components as well as on Nextcloud itself. Also record each app version that touches encryption, sharing or talk, since those apps carry their own cryptographic code.

Does recording the Nextcloud inventory cost extra?

The main cost is staff time, plus any tooling you buy to scan configuration and certificates. Costs rise with the number of Nextcloud instances, the number of apps enabled, whether you use server-side or end-to-end encryption, how many federated shares and external mail or TURN servers you connect, and how many people must confirm the results. The work is largely one-time, and it recurs whenever you upgrade Nextcloud, change an app or renew a certificate. The sources checked for this page give no figures for this work, so ask any outside provider for a written quote that lists the instances, the apps, the components to be checked and the deliverable format, and confirm the hours and fees with them directly.

What breaks if the Nextcloud inventory records are wrong?

A wrong inventory can make a risk decision based on the wrong facts. If the record says a certificate uses RSA when it uses elliptic-curve keys, or misses that a federated share, SMTP link or TURN server is in scope, the migration plan will leave a dependency out. Errors also come from recording the default setting when the administrator changed it. For example, hashing_default_password is false by default, which means Argon2 is used if available, but a changed value leads to PHP's PASSWORD_DEFAULT instead. Likewise, server-side encryption uses a master key by default since Nextcloud 13, and that choice affects who can read stored files. Check each recorded value against the running instance and its config file, and re-verify after every upgrade.

What should we ask Nextcloud GmbH about post-quantum cryptography?

Ask for the answers in writing and ask for the version each answer covers. Start with whether any current Nextcloud server release supports ML-KEM key exchange or ML-DSA or SLH-DSA signatures, and in which editions. Ask whether the end-to-end encryption design, which uses RSA-OAEP and AES-GCM as described in its RFC, will change, and whether the public-key sizes and the 128-bit AES keys will move to the 256-bit options raised in issue #61484. Ask for the date of any roadmap commitment, whether a hybrid mode is planned, and what the administrator must do to adopt it. Ask also how the vendor will handle the PHP libraries it depends on, since a contributor noted on December 2, 2026 that a maintained PHP post-quantum implementation is a prerequisite. Keep the answers in your vendor-risk file with the date you received them.

Can our team build the Nextcloud inventory alone or do we need outside help?

A team with Nextcloud administration experience can do most of the inventory in-house. The work involves reading the config files, checking the TLS settings, listing the certificates and keys, reviewing the server-side and end-to-end encryption settings, and recording the app versions. It needs someone who can read PHP configuration and the web server setup, and it needs access to the running instance and the operating system. Outside help is worth considering when the instances are spread across many environments, when you need the review to be independent for an assessment, or when the staff who know the system are short on time. DeployOpen can plan, document and support that work inside your own infrastructure, but it does not issue audit reports or certifications, so independent auditors must still review the results where an assessment requires it.

How DeployOpen works on this

DeployOpen approaches the cryptographic inventory of Nextcloud as a scoped, written exercise. We map where the server, its apps and its clients use TLS, certificates, server-side encryption keys, end-to-end encryption keys and app signing keys, then document each dependency on public-key cryptography against the version and settings in your environment. The result is an inventory your security and compliance teams can review and keep current.

How we scope

  • We agree in writing which Nextcloud version, Hub line and deployment method the inventory covers, such as the source install, Snap or container setup.
  • We define which surfaces are in scope: HTTPS termination, SMTP TLS, federated shares, server-side encryption, end-to-end encryption, Talk TURN and app code signing.
  • We confirm with you whether the inventory covers only the server or also the desktop, mobile and sync clients that connect to it.

How we build

  • We review your config.php, openssl settings, mail and federation settings, and web server TLS configuration against the Nextcloud admin hardening guide.
  • We record where server-side encryption uses RSA key pairs and AES-256-CTR, and where end-to-end encryption relies on RSA-OAEP and X.509 client certificates.
  • We check the update channel and app signing chain, noting that the code signing docs specify X.509 certificates and a 4096-bit RSA CSR example.

How we hand over

  • You receive a written inventory listing each cryptographic dependency, the Nextcloud version it was observed on, and the setting or file that controls it.
  • Each item states what the sources say and what we could not confirm, so open questions for the vendor are visible rather than assumed.
  • We deliver the inventory as a document your PKI, security and compliance teams can review, with the sources cited for each point.

How we support

  • Engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts.
  • Because Nextcloud's public-key dependencies change with each release, ongoing support and re-inventory after upgrades are available as a retainer.
  • Ask us to confirm the Nextcloud version, Hub line and settings in your environment before any inventory figure is relied on in a quote or audit.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.