Hi, I am new to Auth0. I have tried to dockerize my go app. but getting the following error.
failed to get new provider: Get “https:///.well-known/openid-configuration”: x509: certificate signed by unknown authority
My code is here to create a NewProvider:
provider, err := oidc.NewProvider(
N.B: Without docker, my app is running nicely.
@milonmahato67 welcome to the community!
Wonderful! Always good to hear
Could the current issue have something to do with a lack of root certificate? These types of errors are almost always configuration related, especially when working outside of containerization. See:
Ok, problem solved. The problem is due to this being run inside a Kubernetes pod. Our base image is Alpine, which doesn’t include the root certs, apparently. When I installed curl in the pod to test, it installed the ca-certificates package. This...
Hope this helps!
This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.