Open ID Connect | Keycloak Bind

Hello, im trying to connect my Nextcloud instance with Keycloak through OpenID Connect App and getting this error:
ConnectException cURL error 35: OpenSSL/3.0.11: error:8000000D:system library::Permission denied (see libcurl - Error Codes) for https://xxxxx
Discovery endpoint validation error

This error shows up when i try to apply my config in the settings.
Did maybe anyone faced the same problem and can help me? thx