Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to verify certificate of reverse proxy in front of kanidm (OIDC) #3063

Open
hy6lJuJa opened this issue Jan 5, 2025 · 1 comment
Open

Comments

@hy6lJuJa
Copy link

hy6lJuJa commented Jan 5, 2025

Hello,
I am hosting kanidm and miniflux behind an nginx reverse proxy with a DIY certificate chain (Root CA, Signing CA, TLS certificate)
I am trying to setup OIDC with kanidm and I am getting an error that it fails to verify the certificate for kanidm.example.internal (The URL of kanidm service) when I try to Sign in with OpenID Connect.

level=ERROR msg=Failed to initialize OIDC provider error=oidc: failed to initialize provider "https://kanidm.example.internal/oauth2/openid/miniflux": Get "https://kanidm.example.internal/oauth2/openid/miniflux/.well-known/openid-configuration": tls: failed to verify certificate: x509: certificate signed by unknown authority level=ERROR msg=Unable to initialize OAuth2 provider provider=oidc error=oauth2 provider not found

I browsed the issues and found a few relevant ones where the feed can't be verified but in my case it is the redirect link to the reverse proxy. In the case where the feed can't be verified you can disable the verification IIRC.

I can see 2 possible solutions:

  1. Redirect link goes straight from miniflux to kanidm without the reverse proxy URL. However, I tried this by using the docker container name or the docker container IP address and I couldn't get it to work. Got connection refused errors but maybe I didn't do it right.

  2. Add the root CA to the miniflux container.
    I don't know for sure how to do this without having to change the Dockerfile and I would appreciate if someone can show me where I should add the certificate and how I can update the trust by running something such as: update-ca-certificate.

Docker container IP's

Nginx Reverse Proxy (172.18.0.5)
Kanidm (172.18.0.6)
Miniflux (172.18.0.9)

User can access kanidm and miniflux.
kanidm can redirect to miniflux

Any other options and help appreciated.
Happy new year.

@hy6lJuJa
Copy link
Author

hy6lJuJa commented Jan 9, 2025

I ended up using the workaround found in this comment from issue #420.

However, I am still looking for something a bit more stable or convenient. Maybe add the capability to install a self-signed certificate from the miniflux web UI?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

1 participant