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(
context.Background(),
"https://"+os.Getenv("AUTH0_DOMAIN")+"/",
)
N.B: Without docker, my app is running nicely.
tyf
May 11, 2022, 11:59pm
2
Hi there @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. ...
Hope this helps!
tyf
Closed
May 27, 2022, 12:00am
4
This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.