Azure Certificate Chain Trust Issues
We recently started getting errors in one of our Azure functions & Azure App Services for dotnet code that was using HttpClient to access a URL.
The error was
The SSL connection could not be established, see inner exception. The remote certificate is invalid according to the validation procedure: RemoteCertificateNameMismatch, RemoteCertificateChainErrors
We did some investigation and did validate the SSL for the url we were hitting was valid. We validated this in chrome, openssl, and a couple other tools. All validate this cert was trust worthy. When i run the same code locally it works. It only breaks on Azure. I think the issue is Azure does not trust
I went into Kudu and pulled the root cas and those were both missing. Can someone confirm that my theory is correct? I also can't find any public record of Azure removing USERTrust or Sectigo.
These were the root certificates o Azure