Skip to content

[Bug] Nextcloud Encryption breaks with OpenSSL 3.x due to legacy RC4 usage #32003

@MartB

Description

@MartB

ℹ️ Should be fixed by #36173 (NC26)

if (openssl_open($encKeyFile, $plainContent, $shareKey, $privateKey, 'RC4')) {

Completely breaks the encryption on any system with the default openssl 3.0 config (legacy ciphers are now disabled).

Error example if this inevitably starts happening for fedora 36 et. al

OCA\Encryption\Exceptions\MultiKeyDecryptException: multikeydecrypt with share key failed:error:0308010C:digital envelope routines::unsupported

Workaround (from within the distribution openssl.conf)

# Configure as (add or uncomment as needed)

[provider_sect]
default = default_sect
legacy = legacy_sect

[default_sect]
activate = 1

[legacy_sect]
activate = 1

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions