
NimeshC.71375 (Customer) asked a question.
We are getting issue while integrating okta with our API developed in ASP.NET Core running in a windows docker container . The error we are getting is this: System.InvalidOperationException: IDX20803: Unable to obtain configuration from: 'https://<domain>oauth2/<appid>/.well-known/openid-configuration'. ---\u003e System.IO.IOException: IDX20804: Unable to retrieve document from: 'https://<domain>oauth2/<appid>/.well-known/openid-configuration'. ---\u003e System.Net.Http.HttpRequestException: The SSL connection could not be established, see inner exception. ---\u003e System.Security.Authentication.AuthenticationException: The remote certificate is invalid according to the validation procedure.
We've tried just about everything found on the forum and on the internet with no luck.
Any help would be appreciated. At this point we don't know if the issue is with certificate or with docker or okta?

Hi Nimesh,
From the following documentation seems to be circling around a certificate issue: https://blogs.msdn.microsoft.com/jpsanders/2009/09/16/troubleshooting-asp-net-the-remote-certificate-is-invalid-according-to-the-validation-procedure/
Also in regards of the SSL connection could not be established, make sure TLS 1.2 is enabled https://help.okta.com/en/prod/Content/Topics/Miscellaneous/okta-ends-browser-support-for-TLS-1.1.htm
I recommend involving Microsoft also in regards of this, from Okta consider opening a ticket for a closer look to be taken however I think Professional Services could say exactly what the issue is, however since it's oauth2 I suggest posting this on the Dev forums as well: https://devforum.okta.com/
Thank you