AuthenticationException: The remote certificate is invalid according to the validation procedure

  • SDK Version: 1.0.1
  • Platform Version: Auth0.AspNetCore.Auth / Linux Debian 10

I implemented a website with dotnet core, and it was working until 2 days ago.
Now I’m getting that error:

AuthenticationException: The remote certificate is invalid according to the validation procedure
HttpRequestException: The SSL connection could not be established, see inner exception.
IOException: IDX20804: Unable to retrieve document from: '[PII is hidden
InvalidOperationException: IDX20803: Unable to obtain configuration from: '[PII is hidden

the code:
await HttpContext.ChallengeAsync(Auth0Constants.AuthenticationScheme, authenticationProperties);

Hi @ffoliveira ,

I’m having a similar issue when running a dotnet 5.0 app in Docker. Did you find out what was going on?

Hello, I don’t remember exactly what was done. But I think it was because my site is behind cloudflare and I didn’t configured the nginx proxy correctly.

Take a look of this

to see if it have something helpful…