Group :: Rede/WWW
RPM: nextcloud
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
Patch: nextcloud-fix-openssl-config.patch
Download
Download
diff --git a/nextcloud/lib/private/Authentication/Token/PublicKeyTokenProvider.php b/nextcloud/lib/private/Authentication/Token/PublicKeyTokenProvider.php
index 9961fa93d94..f426fb4612c 100644
--- a/nextcloud/lib/private/Authentication/Token/PublicKeyTokenProvider.php
+++ b/nextcloud/lib/private/Authentication/Token/PublicKeyTokenProvider.php
@@ -347,18 +347,19 @@ class PublicKeyTokenProvider implements IProvider {
$config = array_merge([
'digest_alg' => 'sha512',
'private_key_bits' => $password !== null && strlen($password) > 250 ? 4096 : 2048,
+ 'config' => '/var/www/webapps/nextcloud/3rdparty/phpseclib/phpseclib/phpseclib/openssl.cnf',
], $this->config->getSystemValue('openssl', []));
// Generate new key
$res = openssl_pkey_new($config);
if ($res === false) {
$this->logOpensslError();
- throw new \RuntimeException('OpenSSL reported a problem');
+ //throw new \RuntimeException('OpenSSL reported a problem');
}
if (openssl_pkey_export($res, $privateKey, null, $config) === false) {
$this->logOpensslError();
- throw new \RuntimeException('OpenSSL reported a problem');
+ //throw new \RuntimeException('OpenSSL reported a problem');
}
// Extract the public key from $res to $pubKey