Merge pull request #15524 from nextcloud/fix/noid/clear-openssl-errors

fix(setupcheck): Clear OpenSSL errors before executing
This commit is contained in:
Joas Schilling
2025-07-15 21:32:30 +02:00
committed by GitHub

View File

@ -583,6 +583,9 @@ class Config {
}
public function deriveSignalingTokenPublicKey(string $privateKey, string $alg): string {
// Clear any existing (unrelated) OpenSSL errors
while (openssl_error_string() !== false);
if (str_starts_with($alg, 'ES') || str_starts_with($alg, 'RS')) {
$opensslPrivateKey = openssl_pkey_get_private($privateKey);
$this->throwOnOpensslError();