I'm building a ASP.Net Core 2.2 MVC website and I'm using AzureAD as login. Also I'm using a bearer token to get data from a Microsoft Dynamics backend.
Everything worked fine and I got my data until yesterday. I got an IIS error (visual studio debug mode) that said that it cannot find connection and timed out after around 5 million milliseconds (it was around 5-6 real seconds). I restarted my computer and I wasn't getting that error again but since then I'm getting this error while getting my data:
The SSL connection could not be established, see inner exception. The remote certificate is invalid according to the validation procedure
I didn't change any code from when it worked till when it didn't anymore. I hope you guys can help me. If you need further informations please let me know and I'll provide them.