Docker build failed with Auth0 and golang

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.

Hi there @milonmahato67 welcome to the community!

Wonderful! Always good to hear :smile: 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:

Hope this helps!

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.