Skip to content

Updating OpenSSL breaks Nextcloud server 23/24/25 side encryption due to RC4 deprecation #197726

@AkechiShiro

Description

@AkechiShiro

Describe the bug

Updating openssl breaks Nextcloud server 24/25's (RC4 is deprecated and removed but used in Nextcloud) server side encryption,

PR being developed for a fix upstream : nextcloud/server#25551

Issue mentioning a workaround : nextcloud/server#32003

Workaround mentioned upstream :

[provider_sect]
default = default_sect
legacy = legacy_sect

[default_sect]
activate = 1

[legacy_sect]
activate = 1

I couldn't make this workaround work on NixOS, just yet, I've attempted:

  environment.etc = {
    # Creates /etc/openssl.conf
    "openssl.conf" = {
        text = ''
            [provider_sect]
            default = default_sect
            legacy = legacy_sect

            [default_sect]
            activate = 1

            [legacy_sect]
            activate = 1
            '';
            # The UNIX file mode bits
            mode = "0440";
            };
        };

Steps To Reproduce

Steps to reproduce the behavior:

  1. Updating openssl breaks Nextcloud 24/25's Server Side Encryption

Expected behavior

Server side encryption should just work.

Screenshots

Errors on the web interface or in the logs contains one or multiples of the following:

OCA\Encryption\Exceptions\MultiKeyDecryptException: multikeydecrypt with share key failed:error:0480006C:PEM routines::no start line
OCA\Encryption\Exceptions\MultiKeyDecryptException: multikeydecrypt with share key failed:error:0308010C:digital envelope routines::unsupported
Sabre\DAV\Exception\ServiceUnavailable: Encryption not ready: multikeydecrypt with share key failed:error:0308010C:digital envelope routines::unsupported

Additional context

Bug due to deprecation of RC4 in OpenSSL by default, not due to Nix/NixOS.

Notify maintainers

@schneefux @bachp @globin @fpletz

Metadata

Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.

- system: `"x86_64-linux"`
 - host os: `Linux 5.15.64, NixOS, 22.11 (Raccoon), 22.11pre420607.969c3ccf30a`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.11.0`
 - channels(root): `"nixos, nixos-old-20.09, nixos-unstable, nixpkgs-unstable"`
 - channels(user): `""`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`

Metadata

Metadata

Assignees

No one assigned

    Labels

    0.kind: bugSomething is broken6.topic: nixosIssues or PRs affecting NixOS modules, or package usability issues specific to NixOS
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions