I am using Microsoft Graph API to send and read user details from AD with "Application permissions" from an web app. Microsoft.Graph SDK 3.5 is used for this.
.Net framework version - 4.6.1
Intermittently it is erroring out exception : "The remote certificate is invalid according to the validation procedure".
On executing wireshark : For failed API calls the graph.microsoft.com TLS certificate has an algorithm of sha384rsa while the successful ones are having sha256rsa.
How can be this be resolved?