appConfig->getValueBool('core', OCMSignatoryManager::APPCONFIG_SIGN_DISABLED, lazy: true)) { try { foreach ($this->signatoryManager->getLocalJwks() as $jwk) { $keys[] = $jwk; } } catch (Throwable $e) { $this->logger->warning('failed to build local JWKs', ['exception' => $e]); } } return new GenericResponse(new JSONResponse(['keys' => $keys])); } }